I created a list with random letters(uppercase & lowercase). Im trying to write code so it only print the unique values considering the uppercase & lowercase. for example, ["A","a","a","B","b"] would print ["a","b"]
heres my code so far:
List_1 = ["a","a","a","b","A","b", "B", "c", "C"]
for x in List_1:
l = x.lower()
myset = set(l)
print(myset)
& here is the output:
{'a'}
{'a'}
{'a'}
{'b'}
{'a'}
{'b'}
{'b'}
{'c'}
{'c'}
Now that im printing these value through a set, why is it still printing duplicate values? what am I doing wrong?