WAP in python enter 10 names in a tuple from keyboard, then display only unique names from that tuple.
Answers
Answered by
1
names = tuple([input(f"name_{x}: ") for x in range(1, 11)])
print("\n".join(list(set(names))))
Similar questions