Followers

Tuesday, November 12, 2019

WORKING IN PYTHON

WORKING IN SCRIPT MODE (PYTHON IDLE):-

 Script mode of python means that you type the whole code in an one go and then to display the output of that typed code by saving it on a file by an extension name i.e., .py. 
But some of you will ask that we can do that in interactive mode also. No we can't do that in interactive mode caz it takes a single code and then display the output and if then also you guys typed the whole code in the interactive mode then let me tell you one thing that in interactive mode you cannot save the code you have typed.      And this is the reason Script mode is use. Now lets see how to use the Script mode in Python. 
  (i) Click START BUTTON → ALL PROGRAMS→PYTHON             3.6x→IDLE
 (ii) Click FILE→NEW in IDLE Python shell or you can try the             keyboard shortcut to open the New window i.e., Ctrl+N.
 (iii) In the New window that opens, type the commands and then            save the program with the extension .py, by opening the save            option by clicking on FILE→SAVE, or you can use the                    keyboard shortcut for saving a data i.e., Ctrl+S.   
Now your program is saved on the disk and the saved file will have  .py extension.



So with this we are end with this Post.
JAI HIND!!! 

VANDE MATARAM!!!!!      

No comments:

Post a Comment

If you have any doubts, please do let me Know.