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. ;)
_
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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. ;)
_