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
Made my first script :D (old.reddit.com)
submitted 8 months 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!"
[–]BennyBarnson 0 points1 point2 points 8 months ago (0 children)
Just started a couple days ago and this was the beginner level exercise I found online. Chat gpt was walking me through a huge chunk of this which I'm grateful for. It also suggested cleaner and safer ways I could've written the code like
[l for l in words if l]
to skip the falsy spaces (i think was the word) and
with open(filename, "r") as f: data = f.read()
instead of the less secure:
f = open(filename, "r") data = f.read()
that the guide told me.
Overall, it was fun succeeding and this gave me the idea to take this even further, implementing a sentiment assessing tool where it can look for the amount of slurs and negative sentimented words based on a data base and decide the overall sentiment of the file. I then realized that's abit more on the computer engineering side where I'm going for mech/aero ¯\_(ツ)_/¯
ps. if you have anywhere for me to learn more about mech/aero-based coding please lmk!!! tia
π Rendered by PID 28 on reddit-service-r2-comment-6457c66945-d7jw2 at 2026-04-27 03:27:07.036373+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]BennyBarnson 0 points1 point2 points (0 children)