logo

Find Maximum and Minimum Values of a List

Your task is to make two functions ( max and min, or maximum and minimum, etc., depending on the language ) that receive a list of integers as input, and return the largest and lowest number in that list, respectively. Each function returns one number.


My code:

def minimum(arr):
    return min (arr)

def maximum(arr):
    return max(arr)