7.OPERATORS AND EXPRESSION

7.4.1,page number:145

In [1]:
number = 19+9
print "The month of Februry has",number,"days"
The month of Februry has 28 days

7.4.2,page number:145

In [1]:
number=15
total=number*4
print total,"is 4 times greater than",number,"number."
60 is 4 times greater than 15 number.

7.8.1,page number:150

In [2]:
m = 2
n = 12.34
result=m*n
print m,"*",n,"=",result
print result,"in scientific notation is","{:.2E}".format(result)
print m,"*",n,"=",round(result)
2 * 12.34 = 24.68
24.68 in scientific notation is 2.47E+01
2 * 12.34 = 25.0