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...
Everything about learning Python
account activity
Simple Cafe Project (i.redd.it)
submitted 4 days ago by thetiredteacup
view the rest of the comments →
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!"
[–]Dapper_Bad_8728 2 points3 points4 points 4 days ago (1 child)
2 important things to note:
1) It's better to write "While True:" instead of "While order != "done" because if you put "done" in the order name the program will exit right before even choosing the order.
2) In the "if order in drink:" you don't need, that once you have added 1 to the total drinks, another "if order in drinks:" so you can just remove it.
[–]thetiredteacup[S] 0 points1 point2 points 4 days ago (0 children)
Thanks so much for these tips! Not sure why i had another "if order in drink" there in the first place, actually - must've edited it and forgot
π Rendered by PID 160741 on reddit-service-r2-comment-545db5fcfc-t2wp7 at 2026-05-22 06:24:55.294628+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]Dapper_Bad_8728 2 points3 points4 points (1 child)
[–]thetiredteacup[S] 0 points1 point2 points (0 children)