Hello!
I am really struggling to understand why I am getting a return on my interpreter 3 lines for my ['yes, 'no']
prompt.
Would someone kindly review my code and assist me on it? It's driving me nuts here
OS - Windows
Text Editor - Sublime Text
Interpreter - Windows PowerShell(x86)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I am really struggling to understand why I am getting a return on my interpreter 3 lines for my ['yes, 'no']
prompt.
Would someone kindly review my code and assist me on it? It's driving me nuts here

OS - Windows
Text Editor - Sublime Text
Interpreter - Windows PowerShell(x86)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
reservation_name = input("\nGood afternoon, Anthony's dinner reservations. " "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("-> ") for reservation_reply in reservation_prompt: if reservation_reply == '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.")
Error:Good afternoon, Anthony's dinner reservations. May I have your full name please? michael drumm
Hello Michael Drumm are you looking to make a dinner reservation with us?
-> yes
Oh this line is for reservations only, please hold the line and I will forward you on to our management team.
Oh this line is for reservations only, please hold the line and I will forward you on to our management team.
Oh this line is for reservations only, please hold the line and I will forward you on to our management team.