loading...

Discussion on: Solving Perl Weekly Challenge 083 with Raku and Python

Collapse
paddy3118 profile image
Paddy3118

len("".join(s.strip().split()[1:-1]))

Untested but that would be a Python solution for task1.

People are better in some languages than others, which tends to colour such language comparisons with code from only one person.

Site rosettacode.org has each individual task being able to be answered by many coders in their preferred language.

Collapse
gugod profile image
Kang-min Liu Author

Thank you ! That is a veri concise piece of code and I like it. BTW I'm not trying to emphasis any particular language with these posts as I'm just learning basic features of many programming languages with the weekly challnges.

If my python code looks suboptimal, that's because I'm a noob. ;)
_