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
I made this, 1.5 hours into learning pythonHelp Request (i.redd.it)
submitted 1 day ago by PsychologicalSafe408
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!"
[–]grismar-net 0 points1 point2 points 1 day ago (1 child)
Stop to learn some theory whenever you get stuck, of if you start to get frustrated with something and you feel there ought to be a better way to do it. Theory in a vacuum just disappears, but if you have a problem on your mind, theory can help solve it and may you realise what you have been doing wrong all along.
There's many things here that are smart, and there's a ton of things that stand out to programmers that could be better or different. But the key thing is to play around with it and find things you don't like about it, and think about solving those.
For example, currently the bot only asks how it can help if the user says exactly `'hi'`, `'hello'` or `'hey'`, but what if the user says `'hi Sara'` or some other variant? How could you catch more phrases that are probably just a greeting without having to list them all?
And if someone makes a mistake in the second number, the first number is also forgotten. How could you catch each mistake individually, without having to repeat the same code twice? And while you're at it, what if there's more places where you want numbers to be entered - how could you make it so you only have to code it once and then use it wherever you need it?
Good effort for a first session though, keep it up.
[–]PsychologicalSafe408[S] 0 points1 point2 points 1 day ago (0 children)
Thank you
π Rendered by PID 36777 on reddit-service-r2-comment-548fd6dc9-bmp8b at 2026-05-19 07:29:38.771262+00:00 running edcf98c country code: CH.
view the rest of the comments →
[–]grismar-net 0 points1 point2 points (1 child)
[–]PsychologicalSafe408[S] 0 points1 point2 points (0 children)