Page 114 - Code Craft Computer-7
P. 114
2. Swara wants to test multiple conditions in a program and follows a top-down approach. But she
is unable to identify which type of statement she should use to do so. Help her by writing the
correct statement.
Practical Session #Experiential Learning
Go to your computer lab & do the following:
Write a Python program to:
a. 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).
b. 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.
c. find whether the given character is a vowel or not.
d. input three numbers from the user, then print “You Won” if the sum of input numbers is
greater than 1000.
Stretch Your Mind #Problem Solving
Prepare a PowerPoint presentation on ‘Decision Making Statements in Python’.
Join the Discussion #Communication
Discuss the different decision making statements in class in detail.
Mental Processing #Life Skills and Values
One of your friend is not able to code in Python. What would you do? Justify your answer.
Teacher’s Corner
• 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.
114

