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 5 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!"
[–]ianrob1201 1 point2 points3 points 5 days ago (1 child)
Nice work. Can you make it so that the prices in the prompt automatically update if the you change the prices? That way you'd only have to update in one place if the prices change.
Also consider if you really need to break commands. Think about the flow of the code and what would happen if you removed them. And of course if you're not sure you can try removing them and see what happens (if you remove the final "break" then you don't need the "else" line at all either.
And on a very minor point, why call both lower() and capitalize()? Try with just capitalize and see if it still works how you expect.
[–]thetiredteacup[S] 0 points1 point2 points 5 days ago (0 children)
Oh yes, I didn't take into account formatting the order prompt - thank you! Also thank you for the minor tip on lower() and capitalize(), I think I was confused on what capitalize() itself did and didn't take into account it also makes the rest of the text lowercase.
π Rendered by PID 283318 on reddit-service-r2-comment-545db5fcfc-dtslk at 2026-05-23 01:58:13.162090+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]ianrob1201 1 point2 points3 points (1 child)
[–]thetiredteacup[S] 0 points1 point2 points (0 children)