Page 78 - ModularV1.1 _c8_flipbook
P. 78
E. Long answer type questions.
1. List any four features of Python.
2. What is a variable? What are the rules to define a variable?
3. What is the use of the input( ) statement? Explain with the help of an example.
In the lab Computational Thinking
Write a program to calculate the simple interest. SI = (P * r * t ) / 100
where,
P is for principle amount
r is for rate of interest
t is for time duration
Hint:
P = 200
r = 2
t = 3
SI = (P * r * t) / 100
print (“simple interest is”, SI)
Write a program in which the string value is defined inside single, double and triple quotation marks.
Hint:
str1 = ‘hello’
str2 = “orange”
str3 = “’education”’
print (str1)
print (str2)
print (str3)
Write a program to input the radius value and calculate area of a circle.
Hint:
radius = int(input (“enter the radius”))
area = π * r * r
print (“Area of circle”, A)
Teacher's Corner
1. Talk about the various open-source software.
2. Discuss about the features of Python and how they contribute to make Python a strong programming language.
3. Explain the syntax of input( ) and print( ) statements.
76 Modular (Ver. 1.1)-VIII

