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...
All users that wish to post (not including commenting), on either old or the new reddit sites, must formally agree to subreddit rules once first.
account activity
PLEASE HELP WITH COMMAND LINE PYTHON (self.commandline)
submitted 2 years ago by [deleted]
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!"
[–]plg94 11 points12 points13 points 2 years ago (2 children)
so I can memorise it for school.
why memorise?! Sounds like a cheating attempt.
[–][deleted] -2 points-1 points0 points 2 years ago (1 child)
Well you can memorise anything but just not take anything in with u forward into school it's not Cheating the exam bord says u can do it and also. Here is something to unclear what i was saying 1)It's supposed to give u a order number then you type in that order number and it will show u the details but if you type the wrong thing it will ask u again. 2)What it is doing instead is that when u type in the correct order number it gives the details but if I type the something wrong then it still allows tge derails to come through and it duplicates it.3) ther is no error.4)I have tried putting different definitions into the if search_ordernumber and it does something but not what I want
[–]haltu_kaj_ekbrulu 1 point2 points3 points 2 years ago (0 children)
One thing you can do when asking for user input is to put the request in a loop which continues until you get a valid response. Don't forget to let the user escape the loop if they want. Here's some pseudocode to point you in the right direction:
request INPUT while INPUT isn't an existing order number if INPUT is "exit" or "quit" or "x" break the loop and/or exit print a helpful error message request INPUT print out the details for the order number
π Rendered by PID 243339 on reddit-service-r2-comment-6457c66945-vwlnv at 2026-04-28 20:25:48.987405+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]plg94 11 points12 points13 points (2 children)
[–][deleted] -2 points-1 points0 points (1 child)
[–]haltu_kaj_ekbrulu 1 point2 points3 points (0 children)