Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
One possible program:
names_list = []
while True:
name = input("Name (or 'done'): ").strip()
if name.lower() == "done":
break
if name in names_list:
print("Already signed up")
else:
names_list.append(name)
print("Sign-ups:")
for person in names_list:
print(person)