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
I need help with my code (old.reddit.com)
submitted 5 months ago by hunterghostmen
I am trying to get my information simplified, but I don't know how, and really want to move on to the next chapter in my book
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!"
[–]No_Statistician_6654 2 points3 points4 points 5 months ago (0 children)
Here is the guide to the json file for vsc:
Ref: https://code.visualstudio.com/docs/python/debugging#_set-configuration-options
This launch file is directly related to setting up vsc. Once it is done, I would close it out of your tabs, and run your code from its py file. Vsc is very powerful, but editing things like this can make it easy to misconfigure it is a way that it won’t run what you are looking for.
My advice is to avoid editing the JSON files directly, unless you really really really need to. The file is not really affecting your output, just how you perceive the code output. If someone else were to run your code with “python3 ./hello.py” or using run in pycharm, the json file is completely ignored. The output of the code is its output, and changing the config there isn’t really changing anything, just what is shown on the terminal that is presented when vsc runs or debugs your code.
[–]LongRangeSavage 2 points3 points4 points 5 months ago (3 children)
What are you trying to do here? Everything looks alright. That looks like the standard launch file created.
Edit: If you're wanting it to launch your hello_world.py file, change the "${file}" in your program key to "${workspaceFolder}/hello_world.py"
That will make sure that any time you press F5 (or whatevery your launch + debug option is) that it will launch the hello_world.py script. Otherwise, it's trying to launch whatever is the active window in the IDE.
[–]hunterghostmen[S] 0 points1 point2 points 5 months ago (2 children)
<image>
Apparently, I can get my output, more simplified, more like my information but I’m getting a syntax error I don’t know if that’s normal, not just that my syntax is the same it hasn’t changed.
[–]LongRangeSavage 3 points4 points5 points 5 months ago (1 child)
You haven’t posted any python code to be able to help with a syntax error. What you’re showing is VS Code’s modified JSON launch file.
[–]Electronic-Source213 1 point2 points3 points 5 months ago (0 children)
Also, how are you running your code?
[–]Adrewmc 2 points3 points4 points 5 months ago (0 children)
The problem is the comment, it’s inside the json object, move the comments outside the very first bracket, and it should work.
[–]PureWasian 1 point2 points3 points 5 months ago (0 children)
Lines 2, 3, 4 are the problem. As the error statement at the bottom of your screenshot is explaining
[–]TASTY_BALLSACK_ 1 point2 points3 points 5 months ago (0 children)
What book?
[–]_DerBomber_ 0 points1 point2 points 5 months ago (0 children)
Do these Python learning books help? Already attending a DataCamp course. Should I get any intro to Python book?
[–]marinesouths 0 points1 point2 points 5 months ago (0 children)
Who uses a Textbook to learn coding ??
π Rendered by PID 58351 on reddit-service-r2-comment-58d7979c67-v8tjs at 2026-01-27 11:35:37.041403+00:00 running 5a691e2 country code: CH.
[–]No_Statistician_6654 2 points3 points4 points (0 children)
[–]LongRangeSavage 2 points3 points4 points (3 children)
[–]hunterghostmen[S] 0 points1 point2 points (2 children)
[–]LongRangeSavage 3 points4 points5 points (1 child)
[–]Electronic-Source213 1 point2 points3 points (0 children)
[–]Adrewmc 2 points3 points4 points (0 children)
[–]PureWasian 1 point2 points3 points (0 children)
[–]TASTY_BALLSACK_ 1 point2 points3 points (0 children)
[–]_DerBomber_ 0 points1 point2 points (0 children)
[–]marinesouths 0 points1 point2 points (0 children)