Create a Python function to remove all duplicate elements in a given list.
list = [1, 2, 3, 4, 4, 4, 5, 5]
def removeDuplicates(lst):
 return list(set(lst))

list = [1, 2, 3, 4, 4, 4, 5, 5]
print(removeDuplicates(list))