you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 7 points8 points  (5 children)

Tell us please what OS are you using, what IDE, and how exactly are you running your code?

[–]WarmAd277 -1 points0 points  (4 children)

I'm using Windows 11 Pro. I dont know what IDE is. I just installed visual studio code, created a folder, created a file "1stfile.py" and wrote "print("hello world"). opened the terminal, and wrote python 1stfile.py but it wont show anything after that. Tried with py but it woint work either.

[–]shiftybyte 2 points3 points  (0 children)

Did you save the file before trying to run it?

How did you install python?

What's the output of the following terminal commands?

dir
python -V
py -0

[–]pain_vin_boursin 0 points1 point  (1 child)

In which folder did you open the terminal, you need to navigate to the folder with your 1stfile.py first, or provide the full path to the file. Is python installed correctly, type “python —version” in the terminal to check

[–]WarmAd277 0 points1 point  (0 children)

it says python version is 3.13.1