Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 142 - logicode 2609 C6
P. 142

    SAVING A PYTHON PROGRAM

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

                               1  Click on the File menu.

                              2  Click on Save option.    3  Type the name of the file in   4  Click on the Save button.
                                                         the File name: box.

                      The file will be saved with the .py extension and ready to be executed
                      as a Python script.                                                            To save a program:
                                                                                                 Short key

                                EXECUTING A PYTHON PROGRAM                                              Ctrl +      S

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

                                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.

                      140   Premium Edition-VI

| 137 138 139 140 141 142 143 144 145 146 147 |