Page 110 - trackpad v5.1 class 8 flipbook
P. 110
COding Zone COding Zone {} = COding Zone COding Zone
{C ding z ne}
21 st
#Critical Thinking
[]
Century
#Technology Literacy
Skills
</>
Identify the errors in the following Python code and rewrite the code after correcting:
1. x = 5
if x = 5:
print("x is equal to 5")
2. num = 20
if num => 20:
print("num is greater than or equal to 20")
else
print("num is less than 20")
CAREER HERE
People who are experts in Python may pursue their career as a Software Developer.
FOR THE TEACHER
Discussion of control statements should be done comparing the situation faced in daily lives. This would help students
understand the concept better.
108 Pro (V5.1)-VIII

