Page 121 - Trackpad_V5_Book 6
P. 121

SAVING A PYTHON PROGRAM

            To save a Python program, follow the steps given below:


                           1  Click on the File menu.












                                                                             3  Type the name of the
                                                                             file in the File name: box.





                          2  Click on Save option.                      4  Click on the Save button.

            By default, the file will be saved in the Python folder in the C: drive, but you can change the
            location if you desire.


                      EXECUTING A PYTHON PROGRAM                                           To save a program:

            To run a Python program, follow the steps given below:                     Short key  Ctrl +  S





                     1  Click on the             2  Click on the Run
                    Run menu.                   Module option.


                                                                                       Short key  To execute a
                                                                                           program:


                                                                                                   F5





            The output will be displayed in the Python Shell window.

















                                                                                        Introduction to Python  119
   116   117   118   119   120   121   122   123   124   125   126