40
oduvan
15 34 57
10059/ 10664
Last seen 15 hours ago
Member for 13 years, 10 months, 21 days
Difficulty Easy
love it!

Best reviews / Newest reviews
First-dsibi 1
good, keep going and share more of your solutions... More
Solution Number Length-RobWcool 1
in order to solve this problem you don't need any new variables in your function. Why? More
First-DavidVargas 1
I think it is way too many comments More
Life is Short!-PHANTOM0308
a fun way to use bool as index for predefined list More
Acceptable Password I-JimmyCarlos
I'm wondering what is a better way to do `a > 6` or `a >= 7` ? More
Using len, string-barborakacerovska
password is str already. No need to explicitly convert it More
First-josefernandez 1
if condition: return True else: return False Can be always replaced by return condition More
First-josefernandez 1
You can start thinking of better names for variables. For example, ‘a’ can be called ‘words’. Good naming is also part of the developer’s job. More
First-A1berrt 1
If you create a variable just to return it right after, means you don't need that variable. just do if conditions: return else: return More
First-A1berrt 1
Here you can check the same solution as you did, but using list comprehension. More
First-A1berrt 1
You've simply pasted the solution. Did you make it by yourself or copy from somewhere? More
First-Patrick_vG
`len(elements)` can be literally removed More
First-A1berrt
very good. Keep up a good work More
simply-rybld2
Constants can be defined outside the function More
Conversion-frankiser
"+" for having a type hint in the variable definition More
kiss???-Luke747
beautiful, +5, you can keep imports outside of the function More
First-helebed
a string is already a list of characters in Python. More
First-Shkurupii
better fits for the creative category More
first-kazuki.h
`sorted(stones, key = lambda x: -x)` = `sorted(stones, reverse=True)` More
first-kazuki.h
`stones[0] if len(stones) != 0 else 0` = `stones[0] if stones else 0` More
1 2 3 4 5 6 7 8 9 10 11 12
13
14 15 16