Answer for Windows first you must install python then set path variable after that write your python program and save think there is a python program that name "hello.py" open cmd.exe then goto the path that you saved your "hello.py" file, and then type python hello.py and press enter key. now the python code is automatically compile and show the result.