Unit 3 Task 5 - Solution

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Solution - Task 5: Unique sign-up list

← Back to task


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)