To quickly get the minimum and maximum value from a sequence, use the built-in functions
min() and max(). Both support the
default parameter β it sets the default value if the sequence is empty. Subscribe for more tips every day!
numbers = [3, 7, 2, 9]
print(min(numbers)) # 2
print(max(numbers)) # 9
# example with an empty list
print(min([], default=0)) # 0
print(max([], default=0)) # 0
https://t.me/DataScience4 π

