2.7COMPILING THE PYTHON PROGRAM
Compilation: The source code in Python is saved as a .py file, which is then compiled into a format known as byte code. Byte code is then converted to machine code. After the compilation, the code is stored in .pyc files and is regenerated when the source is updated. This process is known as compilation.
Linking: Linking is the final phase where all the functions are linked with their definitions, as the linker knows where all these functions are implemented.
How to Run a Program in Python 3
1.First, type your program in the Python 3 Idle compiler (or you can use any Python-supported compiler, like Anaconda, Sublime, Python 3 Idle, or any inline compiler).

2.Before running your program, save your file and use the Python extension (.py) after your file name (for example, abc.py).

3.Then press f5 (fn + f5 for Windows) to run your code.