Thank you in advance for any help. I am getting a syntax error on line 3. The code matchs Mosh’s and I’ve installed all the correct extensions so far. I’ve even tried running the code in pythontutor.org and it works there. Thank again for any help.
I had the same issue on Mac and I have sorted it with the following:
1: settings
2: in the search bar type: code-runner.executorMap
3: click Edit in settings.json
4: after the last code type a comma and press enter
5: on the next line type as follow “code-runner.executorMap”
6: lots of new codes will be displayed
7: amend the the python code (on mine it was on line 14) showing as
“python”: “python -u”, as follow:
“python”: “python3”,
8: save and exit
After this amendment, the formatting string started to work.
For help refer to “Lesson 9” of Getting Started. It is not the same on newer versions but the above should help.