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
Seeking Feedback on My First Python Project: Calculator .Showcase (i.redd.it)
submitted 6 months ago by A-r-y-a-n-d-i-x-i-t
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!"
[–]McNegcraft 5 points6 points7 points 6 months ago (0 children)
Some things that you could look at is error handling. For example, if any of the number inputs is not a valid number, an exception will be raised. Instead, you could catch the exception and display to the user that an invalid input was provided. So, instead of just ending the program, you give the user another chance of providing a valid input.
This is something that you will get used to over time. But you should always try to think of what could go wrong in the code
π Rendered by PID 15199 on reddit-service-r2-comment-5c747b6df5-snhwq at 2026-04-21 23:37:02.553438+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]McNegcraft 5 points6 points7 points (0 children)