23
mlahor
7 29 45
2932/ 3195
Mladen H.
Last seen 5 months ago
Member for 9 years, 9 months, 4 days
Difficulty Normal
Best reviews / Newest reviews
creative slicing-juestr 3
A very interesting solution. It would never come naturally to me to use 'None' as a parameter for list slicing, but when you think about it, it makes sense :) More
Enum + cycle-swagg010164 1
An excellent idea using the cycle iterator. One small tip for working with Enum: you can simplify the line 14 to: self.state = cycle(list(Color)) More
Three solutions + 1 in comments-Phil15 1 1
Great solutions, I would say the third one is the most "algorithmic and fast", and probably the second "the most pythonic", while the first would be the most scholarly and clear :-) More
First-Anastasiia_Stepanova 1
Nice succinct solution using the datetime module. More
First-juestr 1
A very smart succinct solution :) More
First-mikaeldovbnia 1
A classic succinct solution. Mine is the same. More
sum and len-koborC 1
Classic straightforward solution. Good job! More
recursive-ogoro 1 1
Very good, clear and educational. More
First-dagger126 1
Clear solution demonstrating the use of the Set collection. More
First (='ω'=)-Magu 1
An interesting creative solution More
sort and grab-OrginalS 1
A perfectly correct solution :) Hint: Do you really need 'else' statement? More
First-freeman_lex 1
Interesting solution, I like how you showcased the use of the any operator. ChatGPT The word "any" in Python is used as a built-in function, not as an operator. The any() function is used to check if any element of an iterable (like a list, tuple, set, etc.) is True. It is commonly used with conditi More
Two bins-veky 1 1
So, I see bins[1] is the same as nonunique and bins[0] as seen. How exactly did we get to that? I see people mentioning a tuple but then wouldn't it be bins = (seen, nonunique) ? And the double assignment, can we really do it like this, I've never yet seen it like that... More
First-johankor 1
Nice illustration of enumerate More
First-mscislaw 1
A good straightforward solution More
First-swagg010164 1
A really straightforward preferred solution. Good job! More
First-Tinus_Trotyl 1
A very elegant solution where I learned that '' converts to False and every other string to True. More
total_seconds()-ElisaZeneli 1 1
Good call in using range() with the step 2 More
First-JamesArruda 1 1
A very neat solution. Just a quick remark: Is there any point of iterating over 'enumerate(histogram)' vs just 'histogram'? More
simple-rybld2 1 1
Classic straightforward solution. More
1
2 3 4 5 6