user
Write a Python function that takes a list of numbers and finds the maximum number.


assistant
def find_max(list): 
    max = list[0] 
    for i in list: 
        if i > max: 
            max = i 
    return max