Page 116 - PortGPT_V2.1_C6_Flipbook
P. 116

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.
                  Step 1:   Click on the File menu.

                  Step 2:  Click on the Save option. The Save As dialog box appears.
                  Step 3:  Select the desired location to save the file.
                  Step 4:  Enter the name of the file in the File name box.
                  Step 5:   Click on Save button. The file will be saved by the given name at
                          the selected location                                                Saving a Python program


























                                                            Save As dialog box

                  Running a Python Program
                  Follow these steps to run a Python program:
                  Step 1:   Click on Run in the Menu bar.

                  Step 2:  Click on Run Module option.











                                                            Running a program
                  114   Premium Edition-VI
   111   112   113   114   115   116   117   118   119   120   121