items = [1, 2, 3, 4, 5] result = list(map(lambda x: x * 3, items))
[1, 2, 3, 4, 5]
[3, 6, 9, 12, 15]
[1, 4, 9, 16, 25]
[1, 2, 3]
map()
Discuss About this Question.
lambda x: x if x % 2 == 0 else None
sum()
max()
len()
filter()
sorted()
case_insensitive=True
lower()
sorted(case_insensitive=True)
lambda x: x.upper()
To install on iPhone/iPad: tap Share → Add to Home Screen.
Discuss About this Question.