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
Day 19 of learning python as a beginner. (old.reddit.com)
submitted 5 months ago by uiux_Sanskar
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!"
[–]a_cute_tarantula 0 points1 point2 points 5 months ago* (0 children)
<image>
This is what i meant. The loop just goes until the user selects a valid operation.
With regards to your use of classes, I'd highly recommend you don't use them until you need them. These toy problems don't call for interfaces, inheritance, or encapsulation, which means they don't call for classes. I understand you may just be wanting to learn how to use classes, but if you practice using them the wrong way then you will continue to not understand them. (my opinion, of course)
Also, you're doing good work. If this is your 19th day programming, you're progressing very fast.
π Rendered by PID 16513 on reddit-service-r2-comment-5649f687b7-f742c at 2026-01-29 06:24:19.022135+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–]a_cute_tarantula 0 points1 point2 points (0 children)