Python Program & its Execution
Python programs can executes in three different modes which are –
- Interactive Mode
- Script Mode
- Using IDE
1. Interactive Mode
You can enter python in the command prompt and start working with Python.
Press Enter key and the Command Prompt will appear like:
Then execute your Python Programs as follows –
2. Script Mode
You can write Python program in a separate file using any editor of OS via this mode
e.g.
Type print ‘hello world’ in notepad and save it to with .py extension suppose this file name is hello.py.
Then run this file in command prompt by typing Python hello.py
It will print hello world as output.
3. Using IDE
You can execute the python program in graphical user interface. Open the python as follows:
Click on Start button -> All Programs -> Python -> IDLE (Python GUI)
In IDE you can use
- Interactive Mode
- Script Mode
Learn more about PYTHON TOOLKIT in this insightful blog now!
"0 Responses on Python Program & its Execution"