Oct-11-2021, 12:39 AM
As I mentioned, you need to put them into a collection (like a list), not assign them to a scalar str variable.
I would do something like this:
I would do something like this:
total_guests=int(input("Please type how many guests are in your group: ")) print(" ") guest_names = [] for idx in range(total_guests): guest_names.append(input((f"Guest {idx+1}, Please write your name here: "))) print(" ") for guest_number, guest_name in enumerate(guest_names, start=1): print(f"Hello {guest_name}, you are person {guest_number} to check in today")