Feb-08-2021, 02:44 PM
What is your thinking here:
After you fix the input so new_guest is a name (str), how can you verify the name is not IN guest_list?
If zero is entered aren't you supposed to exit the loop? How does this exit the loop?
elif choice == '2': new_guest = float(input('\nPlease enter a new guest.: ')) if new_guest == 0: print('That name is already on the list') elif new_guest == 0: # <- Why the duplicate?? else: guestlist.append(new_guestlist)Wouldn't new_guest be a name? The guests in guest_list are names, so why are you changing the input to a float?
After you fix the input so new_guest is a name (str), how can you verify the name is not IN guest_list?
If zero is entered aren't you supposed to exit the loop? How does this exit the loop?
if choice == '0': print('\nThank you for using guest list manager.')From the assignment it sounds like you are supposed change a "while loop condition". Your while loop condition is "True". You can't change that. How can you make a condition that you can change from True to False?