15
Pavel Karateev
http://pavelkarateev.com/
Last seen 3 years ago
Member for 11 years, 1 month, 2 days
Difficulty Normal
I'm a Django developer in a small local company specialized in a hospital software solutions.
Fond of Python and testing =)
I believe you can greatly speed up the solution with enumerate function
instead of index method usage.
More
Nice solution, I would suggest to simplify it further to oneliner with
ternary operator.
More
Oh, positions can be dropped in fact:
'{:02b} {:04b} : {:03b} {:04b} : {:03b} {:04b}'
More
`total += 1`x8 makes me cry inside = )
Perhaps you should use a `for` loop or something.
More
`for` loop can iterate directly through a string:
for char in string:
if char.isuppe():
pass
More
Nice `any` use! But you should probably check length first so it will shut down evaluation before loops if password is not long enough.
More