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-Patrick_vG
`len(elements)` can be literally removed More
First-Wartem 1
re is too much here :) But I like it More
First-eugen2005 3
[Here](https://py.checkio.org/mission/is-even/publications/eugene100372/python-3/first/share/e2ea5c7705f3512261cb241b44526770/#comment-116766) I've explained how `%` works Operator `not` first converts int to bool... * 0 = False * any non-zero value = True ... then inverts * True = False * Fals More
First-eugene100372 1
The % does two things, depending on its arguments. In this case, it acts as the modulo operator, meaning when its arguments are numbers, it divides the first by the second and returns the remainder. `34 % 10 == 4` since 34 divided by 10 is three, with a remainder of four. More
First-Teja_002
str as variable - super bad idea More
question ?-rybld2
especially when you can simply import it from math module :) More
first-kazuki.h
`stones[0] if len(stones) != 0 else 0` = `stones[0] if stones else 0` More
first-kazuki.h
`sorted(stones, key = lambda x: -x)` = `sorted(stones, reverse=True)` More
First-viktor.chyrkin 1 1
Imagine how much easier it could be to read. enemy_mark = 'X' if your_mark == 'O' else 'O' More
First-Shkurupii
better fits for the creative category More
First-helebed
a string is already a list of characters in Python. More
kiss???-Luke747
beautiful, +5, you can keep imports outside of the function More
Conversion-frankiser
"+" for having a type hint in the variable definition More
simply-rybld2
Constants can be defined outside the function More
First (='ω'=)-Magu 1 1
good, except you don't need square brackets in sum. So you work with generator instead of list comprehension More
First-A1berrt
very good. Keep up a good work More
First-A1berrt 1
You've simply pasted the solution. Did you make it by yourself or copy from somewhere? More
First-A1berrt 1
Here you can check the same solution as you did, but using list comprehension. 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-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
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16