How do I open python in terminal?

How do I open python in terminal?
Answer
Linux (advanced)[edit]
  1. save your hello.py program in the ~/pythonpractice folder.
  2. Open up the terminal program.
  3. Type cd ~/pythonpractice to change directory to your pythonpractice folder, and hit Enter.
  4. Type chmod a+x hello.py to tell Linux that it is an executable program.
  5. Type ./hello.py to run your program!
 

Tìm kiếm

Back
Top