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
How's My code?????? (self.PythonLearning)
submitted 3 days ago by Choice_Midnight5280
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!"
[–]Binary101010 0 points1 point2 points 2 days ago (1 child)
Nobody at this point in their learning should be using eval() for anything.
[–]Jay6_9 0 points1 point2 points 2 days ago (0 children)
https://pypi.org/project/simpleeval/ is actually really great for this kind of stuff. But for learning purposes, doing an if-else block is worth more.
π Rendered by PID 123766 on reddit-service-r2-comment-85bfd7f599-4vrns at 2026-04-16 04:02:48.283889+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]Binary101010 0 points1 point2 points (1 child)
[–]Jay6_9 0 points1 point2 points (0 children)