33
Kurush Kurushich
Last seen 1 day ago
Member for 11 years, 1 month, 27 days
Difficulty Normal
You have chosen the right creative category in comparison with classical clear solution "return num % 2 == 0".
More
Your solution is a clear demonstration of “takewhile” usage.
More
Your solution can be slightly reduced to "return len(set(elements)) <= 1".
More
Je ne voudrais pas utiliser " lines = g [:] " pour renommer. Mais la solution est bonne.
More
An interesting idea of using the "find" function for number generation.
More
My solution is almost the same. I used "return max(data, key = data.get)" inside function.
More