Page 120 - TechPluse_C7_Flipbook
P. 120
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
The program will execute and the output will be shown in the Shell window.
Output
Tech
Funda
Interactive Mode is very useful for testing a code as it displays the errors one
by one.
INPUT AND OUTPUT
Python provides two commonly used functions input() and output() for input and output.
The input() Function
The input() function takes the user’s input while a program executes. The general syntax of the
input() function is as follows:
input([<prompt>])
Here, prompt is the string or message you wish to display on the screen. Example:
118 Premium Edition-VII

