Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 87 - 2617_JSSPS_C-8
P. 87

    Type the commands at the prompt, and you will immediately get the results. Simply type 3 + 3 and
                     press the Enter key. The prompt displays the number 6. Try more values and see what happens.

                     Working in Script Mode

                     The Interactive Mode does not save the user's commands in the form of a program. The Script Mode
                     saves the user's commands in the form of a program. To understand the working of Script Mode, we
                     have divided the process into four parts. Let us discuss these.

                     Creating a New File

                     Open the Python IDLE window and follow these steps to create a new file:

                                      1   Click on the File
                                          menu.                                         Click on the New   2
                                                                                        File option.

                     Writing a Program

                     Type the program code in Python window.

                                                                                               Introduction to Python   85

| 82 83 84 85 86 87 88 89 90 91 92 |