Page 104 - Dig_CodeAI_V2.1_Class_7
P. 104
8. a = 200
b = 33
if b > a:
print("b is greater than a")
else:
print("b is not greater than a")
Competency-based/Application-based questions Information Literacy
Shweta was writing a program in which she wanted to execute a particular set of
statements depending upon a particular test condition. Which type of statements can
she use for this?
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.
Critical Thinking
code TASK
A. Write a program to:
1. add two numbers.
2. multiply two numbers.
3. area of a rectangle.
B. Write a program to:
1. 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. calculate the area of square or circle according to the input given by the user. If the input is 1,
then calculate the 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. find whether the given character is a vowel or not.
4. input three numbers from the user, then print ‘You Won’ if the sum of input numbers is greater
than 1000.
102 DigiCode AI (Ver. 2.1)-VII

