I do open a txt file with the below code and getting the following output: ['MUR,MUR,COP,COP,COP,COP,COP']
# opening the file in read mode
my_file = open("my_txt.txt", "r")
# reading the file
data = my_file.read()
# replacing end splitting the text
# when newline ('\n') is seen.
data_into_list = data.split("\n")
print(data_into_list)
my_file.close()
How can I remove the duplicates?