0

I'm just a beginner in python coding but I have an issue for which I didn't found solution. I just try to run a simple script (hello world from the tutorial) but when I right click and execute the program in the terminal I just have a reply of the terminal with "c:/......../helloworld.py" (the path of my folder to my script), and not the program in itself, which should print "hello world". So if anyone know the mistake I made please tell me ! Thank you.

asked Aug 27, 2018 at 9:14
3
  • 1
    could you pls paste your program and your terminal output Commented Aug 27, 2018 at 9:19
  • Are you trying to print anything? Through terminal. Change your directory to where the python file is in. Then run the the program like python <filename.py> or python3 <filename.py> Commented Aug 27, 2018 at 9:20
  • Are you trying to execute python code in the windows terminal maybe? Try using the python shell and it should work. Otherwise you need to tell the terminal to use python to execute the script. Commented Aug 27, 2018 at 9:23

1 Answer 1

1

You need especifi the program interpreted to run the script, for run python scripts write python helloworld.py

answered Aug 27, 2018 at 9:22
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.