Real Python

Get Your Code: Click here to download the free sample code you’ll use to find smallest and largest values and build your own min() and max().

Almost there! Complete this form and click the button below to gain instant access:

Python's min() and max(): Find Smallest and Largest Values

Python's min() and max(): Find Smallest and Largest Values (Sample Code)

๐Ÿ”’ No spam. We take your privacy seriously.

ยฉ 2012โ€“2026 Real Python โ‹… Privacy Policy