Page 31 - tp_Modula_v2.0
P. 31
3. Define the following:
(i) Arithmetic Operators
(ii) Variable
(iii) Logical Operators
4. Distinguish between the following with the help of examples.
(i) AND operator and OR operator
(ii) Modulus operator and Division operator
(iii) Single line comment and Multiple line comment
Computational Thinking
F. Find the output of the following codes:
1. a = 4.5 2. y = 10
b = 2 y += 2
print(a//b) print(y)
3. a = 4 4. var1 = 1
b = 11 var2 = 2
print(a or b) var3 = 3
print(a > 2) print(var1 + var2 + var3)
In the lab Interdisciplinary
Write a program to:
1. calculate the area of a square.
2. add two numbers.
3. multiply two numbers.
4. area of a rectangle.
Teacher's Corner
1. Discuss about operators in Python with the students.
2. Tell the students about the importance of writing comments while programming.
Data Types and Operators in Python 29

