Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
One possible program:
roster = []
while True:
player = input("Player name (or 'done'): ").strip()
if player.lower() == "done":
break
roster.append(player)
print("Team has", len(roster), "players:")
for name in roster:
print(name)