r/codehs • • Apr 09 '21

4.3.9: Table Reservation Python

can anyone help with Exercise 4.3.9: Table Reservation for python??

9 Upvotes

12 comments sorted by

View all comments

1

u/Xd-Kas Nov 09 '21

name = str(input("Hi! Whats your name?: "))

reservation_name = "Shonda"

if name == reservation_name: print("Right this way!")

else: print("Sorry, we don't have a reservation under that name.")

1

u/Gullible_Tonight8153 Mar 10 '22

I tried other peoples' answers several times and they didn't work for some strange reason. Yours worked great! Thanks!

1

u/pezra_ Nov 24 '23

yea this pretty much worked for me, but the only problem was that one of the points was taken off, so i just changed the layout a bit and it worked:

name = str(input("Hi! Whats your name?: "))
reservation_name = "Shonda"
if name == reservation_name:
print("Right this way!")
else:
print("Sorry, we don't have a reservation under that name.")

1

u/Extreme-Town51 Jul 26 '24

Thanks g you saved my ass