36
Last seen 2 days ago
Member for 2 years, 2 months, 13 days
Difficulty Easy
Interesting ising of map
map(range, [wolves+1, goats+1, cabbages+1])
More
And what features of **numpy** are used ???
This solution gives invalid result when coin whith cost=1 is abent !!!
Try
assert checkio(4, [2, 3]) == 2
And why result is float? (You use fake coins?)
More
Try / except gives elegant solution, is an acceptable solution in training but not recommended in production.
More
This solution is too bulky.
-Use isdigit() against in digit
'1234567890' is better than ['1','2','3','4','5','6','7','8','9','0'] , but are not needed at all.
More
return result and len(password)>6
is better than
return result and False if len(password) <= 6 else result and True
More
It's more pythonic to write function for calculation one angle and not use lot of "map" and list comprehantion
More