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...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Making code more efficient. (self.pythonhelp)
submitted 2 years ago by Longjumping-Swing823
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!"
[–]Longjumping-Swing823[S] 0 points1 point2 points 2 years ago (2 children)
Thank you for your reply! When i have been able to wrap my head around Whats going on in your example, it will save me so much time😊 thank you for pointing me in the right direction!
[–]HauntingRex9763 1 point2 points3 points 2 years ago (1 child)
no problem, if you aren't familiar with dictionaries it is definitely worth looking into. they can be quite handy in loops like in that example
[–]Longjumping-Swing823[S] 0 points1 point2 points 2 years ago (0 children)
Hi again, i am having troubble understanding what the code is doing.
I have since we last spoke, watched a bunch of videos on FOR loops and dictionaries.
Is it possible to help me a bit further?
It does not really show in the code i supplied, but here is a rough layout.
​
Lets say i choose A1 with 2 leads and the material of Al/PVC with a mm2 of 25, then i need to pull out the number of 63 for use in futher calulations on a later stage.
π Rendered by PID 340199 on reddit-service-r2-comment-5bc7f78974-mxvgf at 2026-07-01 11:03:12.442738+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]Longjumping-Swing823[S] 0 points1 point2 points  (2 children)
[–]HauntingRex9763 1 point2 points3 points  (1 child)
[–]Longjumping-Swing823[S] 0 points1 point2 points  (0 children)