-5

I'm trying to learn how to use Python (IDLE using Python 3.4) on my Ubuntu computer, but i dont know how to open/run a .py file from the terminal from the desktop.

Carl H
  • 6,181
  • 6
  • 27
  • 41

1 Answers1

0

Save your program with .py extension

For example: hello.py

Open Terminal.., change directory to location where that program is located.

type

python3 ./File_name.py

For example: python3 ./hello.py

Refer here

Ravan
  • 9,379