remove duplicates from array
Python 2, 201 bytes



array = input()
index = 0
while index &lt; len(array) - 1:
&#9;if index &gt;= 0 and array[index] == array[index + 1]:
&#9;&#9;array = array[:index] + array[index + 2:]
&#9;&#9;index -= 1
&#9;&#9;continue
&#9;index += 1
print(array)


Try it online!

Optimizations thanks to Mr. Xcoder