Unit 3 Task 5: Unique sign-up list

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

Unit 3 Task 5 - Unique sign-up list

← Unit 3 tasks - Solution


For an event, you keep a list of names (strings). Start empty.

Repeatedly ask for a name until the user types done (lowercase is fine). If the name is already in the list, print a message like Already signed up and do not add it again. Otherwise append it.

At the end, print the full list of unique names, one per line.

Skills: in with lists, append, loops.

Hint: if name not in names_list: