Page 140 - TP_Pluse_V2.2_Class_7
P. 140
3. x = 31
if x > 10:
print("Above ten")
if x > 20:
print("and also above 20!")
else:
print("but not above 20.")
4. a = 200
b = 33
if b > a:
print("b is greater than a")
else:
print("b is not greater than a")
Let's exPLore Century #Information Literacy
21 st
Skills
Surf the Internet and find more programs of looping in Python.
SDG Activity
Conduct a survey to identify male-to-female ratios among teaching staff, students,
and housekeeping staff at your school. Use Python to analyse the data and display
result. Then, suggest three different ways to promote gender equality in your school
based on your findings.
teCh PraCtiCe 21 st
Century #Critical Thinking
Skills
Write a program:
1. To check whether the year input by the user is a leap year or not. (a year is a Leap year, if
the year is a multiple of 4 and isn’t a multiple of 100 or if the year is a multiple of 400).
2. To calculate the area of square or circle according to the given input by the user. If the input
is 1, then calculate area of square, else find the area of a circle. Ask the user to input the
values for square or circle, based on the input.
3. To find whether the given character is a vowel or not.
4. To check if the input number is positive or negative.
5. To input three numbers from the user, then print ‘You Won’ if the sum of input numbers is
greater than 1000.
For The Teacher
Discuss all the topics covered in this chapter with the students.
Tell the students, how to use indentation to define the body of the conditional statement.
Discuss the concept of control structures in Python with the students.
138 Plus (Ver. 2.2)-VII

