12
alekseykonotop
1 10 25
725/ 745
Aleksey Konotop
Last seen 2 months ago
Member for 5 years, 8 months, 14 days
Difficulty Normal
Best reviews / Newest reviews
foo-StefanPochmann 2
I think this is the best solution. Brief and clear More
Composition of Functions-flpo 1
Wow!! It's very complicated... More
First-mehWincenty 1
Why do you do a check like this: if letter.isupper() == True: It's wrong. if letter.isupper(): It's correct. Good luck. More
First-Merzix 1 1
This code is clear and easy. Very good! More
text.lower().split().count-flpo 1
I think this is the best solution. Brief and clear. More
s.partition-ural_gorets 1
Very cool. Without unnecessary lines of code. More
First-AlexanderKr 1
I wrote just like you. Good luck! More
Both sides-veky 1
It's very interesting solution. Thanks for your explanations. More
Lefts and rights separately-Lemmi 1
It's the best solution what I saw. You are genius. More
First-AlexanderYakimchuk 1
Good. But could you explain why the minus sign is in front of the variable x? Thanks a lot. More
Join and gen exp-neo228wp4
A good solution, but is it necessary to check for other characters, because other characters can not be capitalized. Only letters can. More
Even the Last-neo228wp4
You just need to check the array without specifying the number of elements in it. You can write like this: def checkio(array): return sum(array[::2]) * array[-1] if array else 0 # Another way to solve # return len(array) and sum(array[::2] * array[-1]) Why that? B More
One line as a "if else if else"-alekseykonotop 1
What you think about this entry in one line? More
First-zeddosakasn
Why did you write like this? ... elif n == 0: return 1 ... When raising to the power of 0, the result is 1. More
First-Roadrunner2010
I decided the same way. But this is not short code. More
line max-Marcin_Coles
Yes, this code is cleaner and more explicit. More
First-bkmz
The solution works, but why add extra variables. More
First-panaro32
Yes, this solution is more difficult to understand, but if you think about it, everything becomes obvious. More
First-seth.brenneman
You thought about the solution perfectly. More
First-Vlad_Lopato
This solution works, but you can do everything in one line and do not create unnecessary variables. Like this: def checkio(*args): return abs(min(args) - max(args)) if args else 0 What you think about this solution? More
1
2 3