I want to remove duplicates from a list by only using for and if else statements, Without using set, enumerate functions, fromkeys and without using new empty array/list. So in the given list, I wish to keep an item only if it appears one time, if it occurs to second time, I wish to delete the second appearance, third appearance
a = ['aa', 'bb', 'cc', 'aa', 'dd', 'ee', 'aa', 'cc', 'ff']
So here I wish to remove 'aa' on the 3rd index and 6th index and 'cc' on 7th index while keeping the rest list as it is.