a = [1, 1, 2, 3, 3]
for i in range(1, len(a)+1):
if a[i-1] == a[i]:
a.remove(a[i])

print(a)