16
Vaclav Silhan
Last seen 2 years ago
Member for 3 years, 8 months
Difficulty Normal
can be simplified. You dont need line 4.
just use: for word in phrase.split() on line 6
i have found almost the same solition.
More
Nice, i think it can be simplified:
if n < len(array):
return pow(array[n], n)
return -1
More
nice but can be simplified.
Your last line is allready good. Just change it a littel:
return len(number)-len(number.rstrip('0'))
More