Python Tutorial

Here you can learn about the basics of Python for free.

Sunday, June 2, 2019

Working in Python















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:

→Type commands in front of this python prompts(>>>) .
→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.