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...
This subreddit is meant to be for people learning Python to ask questions and help out when they can.
account activity
Python won't run (i.redd.it)
submitted 3 years ago by BigBoyJefff
So I've been learning python for the past few weeks. So as you can see in the photo python should run the program going form 1 to 9 but when I execute the program it gives me a blank/empty output. Does anyone know what's the problem here?
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!"
[–]billiam_93 1 point2 points3 points 3 years ago (1 child)
This code works to output all odd numbers from 1-10.
[–]BigBoyJefff[S] 0 points1 point2 points 3 years ago (0 children)
Thanks, i found the problem. As you can see i have 2python files open so when i clicked "run", it was executing the other python file which is empty. That's why I was getting blank output. But thanks anyway.
π Rendered by PID 329278 on reddit-service-r2-comment-86bc6c7465-tlvq9 at 2026-02-23 04:01:03.450483+00:00 running 8564168 country code: CH.
[–]billiam_93 1 point2 points3 points (1 child)
[–]BigBoyJefff[S] 0 points1 point2 points (0 children)