Page 118 - 2626_South Point_C-6
P. 118
fun Zone
Let's soLve Critical Thinking
What will be the output of the following programs?
1. a = 4.5 2. y = 10
b = 2 y += 2
print (a//b) print(y)
3. p, q, r = 10, 20 ,30 4. var1 = 1
print(p, q, r) var2 = 2
5. a = 4 var3 = 3
b = 11 print(var1 + var2 + var3)
print(a or b)
print(a > 2)
Let's exPLore Experiential Learning
Surf the Internet and find more information about operators precedence.
teCh PraCtiCe Computational Thinking
Write a program to:
1. Convert Celsius to Fahrenheit using the formula: (Celsius * 1.8) + 32
2. Convert kilometre unit to metre.
3. Input five names from the user.
4. Calculate the area of a square.
5. Add two numbers.
For The Teacher
Discuss about Python programming modes with the students.
Go through all the other topics covered in this chapter.
Tell the students about the importance of Python.
116 Premium Edition-VI

