- In the previous articles, we had understood
- In this article, we will understand different ways of executing python programs
- This mode is the most simplest mode and is used for experimenting with python.
- To Launch Python in interactive mode.
- Launch Powershell or Command Prompt in your windows machine and Enter Python
- Lets experiment by print the most formal way of starting any language, by instructing the Python terminal to print the Hello world!
- To return to the normal terminal enter exit()
Python Script/Code Files
- Create a file with extension .py, i will be creating hello.py with the following content
- Now we need to instruct the python to execute this file and that is done by executing