Page 97 - TP_Modular_V2.1_Class6
P. 97
Worksheet 4
(Based on chapters 7 & 8)
A. Which expressions are the following emoticons used for?
1. :@ .............................................................................................................................................................................
2. |-) .............................................................................................................................................................................
3. :’( .............................................................................................................................................................................
4. :$ .............................................................................................................................................................................
5. =O .............................................................................................................................................................................
6. :)) .............................................................................................................................................................................
7. :I .............................................................................................................................................................................
8. :( .............................................................................................................................................................................
B. Write a Python program to calculate the area of a rectangle.
C. Find the error in the given codes.
1. p, qr = 10, 20, 30
print(p, q, r)
2. var1 = 1
var2 = 2
var1 = 3
print(var1 var2 + var3)
Worksheet 4 95

