How do I create a .PY file in Terminal?

hello-py cd-pythonpractice pythonpractice-folder


Linux (advanced)Edit

  1. save your 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 to tell Linux that it is an executable program.
  5. Type ./ to run your program!

For More Information Please Refer:
You May Also Like to Read: