Page 12 - tp_Modula_v2.0
P. 12

Writing a Program

                  Type the program code in Python window.
                      code.py

                   File  Edit  Format   Run   Options  Window    Help

                   print("Hello World")





                                                        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
                                                                    Tech

                  Follow these steps to run a Python program:
                                                                       Funda
                  Step 1:    Click on Run in the Menu bar.
                  Step 2:    Click on Run Module option.                               Shortcut key to run the
                                                                                       program is F5.




                   10     Touchpad MODULAR (Version 2.0)
   7   8   9   10   11   12   13   14   15   16   17