Given a list of string elements, remove duplicated characters for each string element.
The input consists of two lines:
You need to remove the duplicated characters in each element. (Case insensitive)
For example, in the sample input,
c in the first element Ericc, it should be modified as Eri.rRita, the r is duplicated with R, it should be modified as ita.Note that you can use lower() in python to help you to check the characters.
text = "Ericc"
text_lower = text.lower()
print(text_lower) # "ericc"
To retrieve the character, you can use list index:
print(text_lower[0]) # "e"
Print out a line of elements with duplicated characters of each element removed, where each element are connected by the above separator string in the input.
Note that there will be a new line default by python's print() function. If you are using python's print(), just ignore this line.