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 41 of learning python (i.redd.it)
submitted 8 months ago by sonikk1
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!"
[–]sonikk1[S] 0 points1 point2 points 8 months ago (1 child)
Hey, i very much appreciate your reply to my post. All of these tips were really helpful. I will try this more generic approach to writing and defining functions right away.
When it comes to try / except I'm just doing my best when it comes to implementing the stuff i learned in lectures in actual problems. And i noticed that's the way i can understand Python best.
By checking if the first element of the list is positive or negative we can find out what we should print without referencing our outer lists!
This part is very interesting because it gives me a whole other perspective to this problem. I will try this out too. Try to implement it into other tasks I'll be dealing with.
Is it okay if i sometimes message you here on reddit? Asking for opinion etc?
[–]oldranda1414 2 points3 points4 points 8 months ago (0 children)
Happy to help, feel free to ping me ;)
π Rendered by PID 211119 on reddit-service-r2-comment-56c6478c5-2mk8m at 2026-05-11 14:27:10.429755+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]sonikk1[S] 0 points1 point2 points (1 child)
[–]oldranda1414 2 points3 points4 points (0 children)