Page 87 - modular4.0
P. 87

Chapter Profile
                 Writing a Program
                 Type the program code in Python window.





                                                      Typing Python program code


                 Saving Python Program
                 Follow these steps to save a Python program.


                                    3    Select the desired
                                   location to save the file.


                         1   Click on the
                        File menu.



                   2   Click on the Save
                   option. The Save As
                   dialog box appears.








                                                                  4   Enter the  name of  the     5   Click on Save
                                                                 file in the File name box.       button.



                 Running a Python Program
                 Follow these steps to run a Python program:


                                      1   Click on Run in   2    Click on  Run
                                      the Menu bar.        Module option.












                 The program will execute and the output will be shown in the Shell window.









                                                                Output


                                                                                         Introduction to Programming  85
   82   83   84   85   86   87   88   89   90   91   92