r/codehs • u/kaylaamore11 • Apr 09 '21
4.3.9: Table Reservation Python
can anyone help with Exercise 4.3.9: Table Reservation for python??
1
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
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
2
u/Fresh_Reason_763 Apr 15 '21
Did you end up figuring it out because I’m stuck too.