Given a list of numbers, write a Python program to find the element in the list having the highest value.
def find_max(list):
    max_value = list[0]
    for num in list:
        if num > max_value:
            max_value = num
    return max_value