Page 83 - Code & Click - 6
P. 83

The Save As dialog box opens.


                   1






                   2


                                                3
                                                                                                          4

              3.  Type a name for the script in the File name text box.
              4.  Click the Save button.                                                    Time Saver
                  Python  saves  the script with the extension .py  and displays the        Save a script: Ctrl + S
                  name on the Title bar of the Editor window.

            To open a saved script:
              1.  On the Menu bar, click the File menu.
              2.  Select the Open option.

                           1

                           2




                                                                                                  3





                  The Open dialog box opens.
              3.  Select the desired Python script and click the Open button.         Time Saver
                  The selected script is displayed in the Editor window.              Open a saved script: Ctrl + O
            To execute a script:
              1.  On the Menu bar, click the Run menu.



                                      1



                                                         2



              2.  Select the Run Module option.                                               Time Saver
                  The script is executed, and its output is displayed in the IDLE window.      Run a script: F5

              Mind Fog

             Python executes a script only if it is error-free. If there are errors in the script, Python informs you about
             them in the IDLE window.


                                                                                                                 81
   78   79   80   81   82   83   84   85   86   87   88