40
Awesome Team
Alexander Lyabah
http://www.checkio.org/user/oduvan/
Last seen 1 day ago
Member for 13 years, 10 months, 22 days
Difficulty Easy
love it!
Not bad. I hope solutions of other players showed you how better it can be solved
More
I can't resist of giving +5 for well commented solution + namedtuple
Very educational. Thank you
More
what a spoiler in solution title :)
More
do you really need asserts inside the actual code?
Why do you use `_` before the variable name in function `sm_copy`?
More
not bad,
but it is always better to do improrts outside of function
More
I like your solution.
How you split it on sub-function to make the logic more clear
Thank you
More
Very good solution and right direction of thinking.
You think the following: "(1)I'll check every element of the given list, (1)I'll check how many other same elements in the given list, (3) if the amount is bigger than 1, then this element will be included in the result list"
as you can see - no
More
in order to solve this problem you don't need any new variables in your
function. Why?
More
I'm wondering what is a better way to do `a > 6` or `a >= 7` ?
More
if condition:
return True
else:
return False
Can be always replaced by
return condition
More