8
Kebap
2 5 14
283/ 345
Last seen 1 year ago
Member for 12 years, 8 months, 20 days
Difficulty Normal
Best reviews / Newest reviews
Slicing one digit-Striga 1
Well done! I did not expect this to work with empty lists as well. :D More
First-Xanatos
You can change this: "for i in range(len(data)): x = data[i]" directly to "for c in data: x = c" More
First-Oleg_Babaev
You can replace if digit == 0 or upper == 0 or lower == 0: like this if 0 in (digit, upper, lower): More
First-gahou
Try to assert checkio('ABC###abc') == False More
DP-spoty
The comment should be inside the function it comments on. Also, if you feel you need to explain you one-letter-length variables, then maybe use longer and more descriptive names to begin with. More
First-siebenschlaefer
But why import collections and not from collections import counter when this is the only item you use from there? More
First-Emrys_Cass
You can combine your two if-statements into one with the "and", like you did in the second line anyway. Also, if you have a pattern like this: if check_something and something_else: return True else: return False You can cut it short into th More