min()
` and `max()
` functions in Python to find the lowest and highest value in an iterable. Here's an example program :my_list = [2, 3, 5, 1, 4]
lowest = min(my_list)
highest = max(my_list)
print("Lowest value:", lowest)
print("Highest value:", highest)
Lowest value: 1
Highest value: 5
my_list
`. We use the `min()
` function to find the lowest value in the list and assign it to the variable `lowest
`. max()
` function to find the highest value in the list and assign it to the variable `highest
`. Finally, we print out the results.