$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #208
What is the output?
print(min([3, -5, 2], key=abs))
2
-5
3
5
The key compares absolute values (3, 5, 2), but min returns the original element.
Play Problem Solving ▸
◂ #207
all Problem Solving — predict the output questions
#209 ▸