Once you have python installed in your computer , you are ready to work on it.
You can work in python in following different ways:
(i)Interactive mode
(ii)Script mode
Working in Interactive mode:
→Examples 2+2 , 3*2, 10/2 , etc .
→And obtain result immediately.
Some examples are:-
Working in Script mode:
➦Follows the steps to open script mode in python:-
➝Click on "File".
➝Then,click on "New File".
↪The Commands are given into script mode .
↪And, save the python script file with .py extension.
Let's take a look:-
➨For the simple Hello world program, you will need to type the following line.
('hello world')
in script mode
➨ And ,then Save the file by clicking on "File"
➨Give the name of your program with extension .py
➨After that, you will be find the output as.