Compiling Python

Viewed 60294

How can I compile and run a python file (*.py extension)?

8 Answers

Answer for Windows

  1. first you must install python
  2. then set path variable
  3. after that write your python program and save
  4. think there is a python program that name "hello.py"
  5. open cmd.exe
  6. then goto the path that you saved your "hello.py" file,
  7. and then type python hello.py and press enter key.

now the python code is automatically compile and show the result.

Related