12
Darko ...
Last seen 2 years ago
Member for 10 years, 10 months, 6 days
Difficulty Normal
Why using lambda when you can just:
def checkio(data):
return [x for x in data if data.count(x)>1]
Is there any difference actually?
More
Me too... thought about it at the start of solving problem but I'm still not having enough experience to connect expressions like this one, seen in line 7. Great job!
More
Great use of 'key'! Way to advanced for my current level of experience :) I suppose that 'lambda' function also iterates through lowercase version of 'text', counting every single element (or character), and then compare elements with 'string.ascii_lowercase' to determine which one is maximal. Am I
More
Same as mine except I used:
if number < 0: return num_of_birds + number
else: return num_of_birds
Instead of 'min()'.
More