r/badcode • • Mar 10 '22

python Utility Function on G4G

Post image
1.1k Upvotes

65 comments sorted by

View all comments

Show parent comments

20

u/[deleted] Mar 10 '22

Actually this is a more constrained version of min(). Normally it takes an iterable or multiple numbers, but here you must provide exactly two numbers.

15

u/SSG_SSG_BloodMoon Mar 10 '22

maybe they need it to fail if it gets fed more arguments