Construct a Python code to find the maximum in a given list.
[10, 3, 16, 17, 8]
def find_max(list): 
    max = list[0] 
    for i in list: 
        if i > max: 
            max = i 
    return max 
  
list = [10, 3, 16, 17, 8]
print("Maximum number in the list:", find_max(list))