Page 112 - TP_Play_V2.1_class7
P. 112

3. x = 10


                       if (x = 5):

                           print("x is equal to 5")



                                                                                     21 st
                                                                                   Century   #Critical Thinking
                  G.  Competency-based/Application-based question.                   Skills
                       You  were writing  a program  in which  you  wanted  to  execute  a particular  set of
                     statements depending upon a particular test condition. Which type of statement will

                     you 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.




                                                                                         21 st   #Critical Thinking
                                                                                       Century   #Technology Literacy
                                                                                         Skills
                                                         In the lab


                     Write a program to:

                         display a menu with different food items and their prices. Ask the user to select an item from the
                       menu by entering its corresponding number. Using conditional statements, calculate the total
                       bill based on the selected item and quantity.

                         calculate the total price after applying discounts. Ask the user to enter the price and the discount
                       percentage. If the discount percentage is greater than 25%, display a message indicating that
                       the discount is not valid.

                         convert the temperature from Celsius to Fahrenheit. Take the temperature as input from the user.
                       Determine if the temperature is below freezing (0°C) or not. Display the appropriate message
                       with the converted temperature.
                         calculate the area of a square or circle according to the input given by the user. If the input is 1,
                       then calculate the area of a square, otherwise find the area of a circle. Ask the user to input the
                       values for square or circle based on the input.




                   Teacher's Corner

                  1.  Discuss all the topics covered in this chapter with the students.
                  2.  Tell the students, how to use indentation to define the body of the conditional statement.


                  110       Play (Ver. 2.1)-VII
   107   108   109   110   111   112   113   114   115   116   117