Page 104 - ThinkGPT_V2.1_C7_Flipbook
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    Premium Edition-VII
   99   100   101   102   103   104   105   106   107   108   109