numbers = [5, 3, 8, 2, 7]
# Find max and min
max_number = max(numbers)
min_number = min(numbers)
print(f"Max: {max_number}, Min: {min_number}")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter