Nov-20-2020, 03:26 PM
(This post was last modified: Nov-20-2020, 03:28 PM by sandeep_ganga.)
"for" will iterate over the given, thus try use "if" to direct compare and see if that helps
Sandeep.
GANGA SANDEEP KUMAR
reservation_name = input(f"\nGood afternoon, Anthony's dinner reservations. \n May I have your full name please? ") print(f"\nHello {reservation_name.title()} are you looking to make a dinner reservation with us? ") reservation_reply = ['yes', 'no'] reservation_prompt = input("-> ") if reservation_prompt.lower() in reservation_reply: if reservation_prompt.lower() == 'yes': print("\nHow many dining guests can I book you in for?") else: print("\nOh this line is for reservations only, please hold the line and I will forward you on to our management team.")Best Regards,
Sandeep.
GANGA SANDEEP KUMAR