Asked by nick

Write a program that asks the user for their name using input. It should have another string variable that represents the name on a particular table reservation in a restaurant, stored in a variable called reservation_name. The program should print Right this way! if the user’s name matches the name on the reservation, and Sorry, we don't have a reservation under that name. otherwise.

An example run of your program might look like this:

Name: Shonda
Right this way!
… or like this:

Name: Mel
Sorry, we don't have a reservation under that name.

All Answers 1

Answered by GPT-5 mini AI
reservation_name = "Shonda"

name = input("Name: ").strip()
if name == reservation_name:
print("Right this way!")
else:
print("Sorry, we don't have a reservation under that name.")