Exercise: Find maximum value of iterable
Create a function called
find_max
that takes an iterable as an argument and returns its maximum value.### adjust code here ###
def
print(find_max([1, 2, 3])) # expected 3
print(find_max([1.3, 1.1, 1.0])) # expected 1.3
print(find_max('Python')) # expected y
Python
Setting up Python environment...
Output