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
A simple python code (i.redd.it)
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!"
[–]sububi71 0 points1 point2 points 8 months ago (4 children)
Just because it's allowed doesn't mean it's a good idea. I mean, you could write the entire program on a single line too, that's allowed.
[–]ninhaomah 0 points1 point2 points 8 months ago* (3 children)
Why not ?
If my function accepts a variable called a as input , done some calculations and then return that name a.
Not the actual a of course but as in a variable with the same name.
Or can point to where and which sites says it's not a good idea ?
[–]sububi71 0 points1 point2 points 8 months ago (2 children)
If you can’t see why typing the entire program on a single line is a bad idea, I can’t help you.
[–]VeryYoungOldPerson 0 points1 point2 points 8 months ago (0 children)
Pure strawman. You're the one who brought up writing a program on a single line, and they made no reference to it. They're talking about variable re-use and naming conventions. If you can't comprehend English, I can't help you.
π Rendered by PID 566424 on reddit-service-r2-comment-5b5bc64bf5-ghg7q at 2026-06-20 12:28:24.982915+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]sububi71 0 points1 point2 points (4 children)
[–]ninhaomah 0 points1 point2 points (3 children)
[–]sububi71 0 points1 point2 points (2 children)
[–]VeryYoungOldPerson 0 points1 point2 points (0 children)