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
Math,
2 months ago
English,
2 months ago
Political Science,
2 months ago
English,
4 months ago
Math,
4 months ago
Science,
10 months ago
Social Sciences,
10 months ago
Math,
10 months ago