Daily #21 · 19 October 2026
The longest word Easy
What does this print?
print(max(["kiwi", "plum", "fig"], key=len))
Show the answer
D: kiwi
Why: kiwi and plum are both four letters. When there is a tie, max returns the first one it met.
Daily #21 · 19 October 2026
What does this print?
print(max(["kiwi", "plum", "fig"], key=len))
D: kiwi
Why: kiwi and plum are both four letters. When there is a tie, max returns the first one it met.