Chapter 1 Overview

Program Source Code 1.1, page no: 21

In [1]:
print "Hi There"       #displaying
Hi There

Program Source Code 1.2, page no: 23

In [1]:
print "Hi There",        # says Hi There
print "I am Here"        # says I am Here
Hi There I am Here

Program Source Code 1.3, page no: 24

In [5]:
num=input("Please enter an integer number: ")   #user input
print("The value you entered is: "),num,   #printing
print("and its square is "),num*num
Please enter an integer number: 25
The value you entered is:  25 and its square is  625
In [ ]: