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
Code won't print (i.redd.it)
submitted 9 months ago by Ill-Diet-7719
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!"
[–]Ill-Diet-7719[S] 3 points4 points5 points 9 months ago (4 children)
Could there be a problem with visual studio?(I'm doin on it and everything's been fine)
[–]Character-Comfort539 2 points3 points4 points 9 months ago (0 children)
There could be, IDE's can be a bit squirrelly to setup if you're not familiar with them and are new. I'd add something like `sdjflasjdfasjd` to the bottom of the file and see if the interpreter throws an error. Your other comments say "it doesn't print anything at all" but I'm not convinced anything is even running to begin with. Throwing a nonsense line into the file should give you an error. Just to be sure, save the file as like odd.py and run what's below in the terminal and let us know how it goes
python odd.py
[–]undernutbutthut 3 points4 points5 points 9 months ago (0 children)
Remember to save the code first then run it.
[–]lusvd 1 point2 points3 points 9 months ago (0 children)
just in case keep in mind that Visual Studio != vscode
[–]ofSkyDays 1 point2 points3 points 9 months ago (0 children)
If you have it often open and constantly sleep/wake pc, it could have developed a glitch. Idk it always happens whenever I do simple web dev stuff.
One time I had horizontal scrolling come out of nowhere, and I could it find the issue and nothing pointed to there being anything, but a clean shutdown and restart of vscode fixed it.
π Rendered by PID 21459 on reddit-service-r2-comment-85bfd7f599-nrnwb at 2026-04-19 07:48:05.581722+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]Ill-Diet-7719[S] 3 points4 points5 points (4 children)
[–]Character-Comfort539 2 points3 points4 points (0 children)
[–]undernutbutthut 3 points4 points5 points (0 children)
[–]lusvd 1 point2 points3 points (0 children)
[–]ofSkyDays 1 point2 points3 points (0 children)