Python programs can executes in three different modes which are –
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
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
Learn more about PYTHON TOOLKIT in this insightful blog now!Previous Next
Learn SQL in 16 hrs from experts