Generate a valid python program to remove the duplicate elements from a given list.
[2, 3, 4, 3, 2, 4]
def remove_duplicates(input_list):
    result = []
    for ele in input_list:
        if ele not in result:
            result.append(ele)
    return result