Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 134 - CodePilot V5.0 C6
P. 134

    To write and save a program, follow the given steps:

                                                                                                SHORT SIGN
                                                              1    Type the Python code
                                                              into the editor window.          To save the current

                                                                                                   file: Ctrl + S

                          2    Click on the File menu.

                                                                                            4  Select the location where you

                        3    Click on the Save option.                                     want to save the file.
                            The Save As dialog box
                                         appears.

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

                      The Python program is now saved on your computer, ready to be executed.

                      Executing a Program
                      After writing and saving the Python program, you can run it to see the output. To execute the
                      Python program, follow the given steps:

                               1    Click on the Run menu.

                       2    Click on the Run Module option.

                      The program will execute and the output will appear in the Shell window.

                                                                                                SHORT SIGN

                                                                                              To run the program:
                                                                                                       F5

                      Running a program helps to test and debug code effectively.

                       132
                            CodePilot (V5.0)-VI

         5

| 129 130 131 132 133 134 135 136 137 138 139 |