Design a python program which will return the maximum element of a given list.
data = [10, 20, 50, 27, 11, 1]
def find_max_element(arr):
    max_element = arr[0]
    for num in arr[1:]:
        if num > max_element:
            max_element = num
    return max_element