Page 121 - Computer Class 08
P. 121
10
10
10 PythonPythonPython
Starting the Python in Windows
In Python shell, we can work in two ways.
8 Interactive mode 8 Script mode
Interactive Mode
In the interactive mode, you can type the command in the window and the Python interpreter
will execute the command and give you the result immediately.
Let’s Learn...
Let’s
Learn...
To work in the interactive mode.
1. Click on Start button.
3
2. Click on All Programs .
3. Click on IDLE (Python 3.6 64 bit) .
The command interpreter window opens where you
will see the Python prompt “>>>”.
1
Type a command at the prompt and press the Enter key.
Script Mode
You cannot save the commands in the interactive mode and you can execute only one
command at a time. So, if you want to reuse some commands or execute a group of
commands, you need to save it in form of a file. You can do this in this script mode.
Computer-8 121