Write a Python program to detect and remove the duplicates in a list.
The list is [1, 20, 4, 6, 20, 4, 1, 6].
def remove_duplicates(lst): 
    return list(dict.fromkeys(lst)) 
  
lst = [1, 20, 4, 6, 20, 4, 1, 6] 
print(remove_duplicates(lst))