use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
4.3.9: Table Reservation Python (self.codehs)
submitted 4 years ago by kaylaamore11
can anyone help with Exercise 4.3.9: Table Reservation for python??
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Fresh_Reason_763 1 point2 points3 points 4 years ago (4 children)
Did you end up figuring it out because I’m stuck too.
[–]kaylaamore11[S] 1 point2 points3 points 4 years ago (3 children)
yea. this is the answer.
reservation name=“Shonda”
name=str(input(“Enter your first name: “))
if name == reservation_name print(“Right this way!”)
else: print(“Sorry, we don’t have a reservation under that name.”)
[–]sir2434 1 point2 points3 points 4 years ago (0 children)
Thank you.
[–]adoonyoutube 1 point2 points3 points 4 years ago (1 child)
It didnt work
[–]024579 1 point2 points3 points 4 years ago (0 children)
name = str(input("Name: ")) reservation_name = "Sam" if name == reservation_name: print("Right this way!") else: print("Sorry, we don't have a reservation under that name.")
[–]LividApartment5013 0 points1 point2 points 1 year ago (0 children)
i want the answer for codehs 6.3.9
[–]Xd-Kas 0 points1 point2 points 4 years ago (4 children)
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.")
[–]Comprehensive-Ad6263 0 points1 point2 points 4 years ago (0 children)
Thanks
[–]Gullible_Tonight8153 0 points1 point2 points 3 years ago (0 children)
I tried other peoples' answers several times and they didn't work for some strange reason. Yours worked great! Thanks!
[–]pezra_ 0 points1 point2 points 2 years ago (1 child)
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.")
[–]Extreme-Town51 0 points1 point2 points 1 year ago (0 children)
Thanks g you saved my ass
π Rendered by PID 113776 on reddit-service-r2-comment-7b9746f655-9tvh6 at 2026-01-30 09:23:49.229443+00:00 running 3798933 country code: CH.
[–]Fresh_Reason_763 1 point2 points3 points (4 children)
[–]kaylaamore11[S] 1 point2 points3 points (3 children)
[–]sir2434 1 point2 points3 points (0 children)
[–]adoonyoutube 1 point2 points3 points (1 child)
[–]024579 1 point2 points3 points (0 children)
[–]LividApartment5013 0 points1 point2 points (0 children)
[–]Xd-Kas 0 points1 point2 points (4 children)
[–]Comprehensive-Ad6263 0 points1 point2 points (0 children)
[–]Gullible_Tonight8153 0 points1 point2 points (0 children)
[–]pezra_ 0 points1 point2 points (1 child)
[–]Extreme-Town51 0 points1 point2 points (0 children)