Page 107 - modular4.0
P. 107

Chapter Profile






                                                                                                 21 st
                 F.   Competency-based/Application-based questions.                            Century   #Information Literacy
                                                                                                Skills

                     1.   Sonakshi  is creating a basic login  system for an online  application. The system
                         prompts the user to enter their username and password, then checks if the entered
                         credentials match the stored ones. If both the username and password are correct,
                         the user is granted access. If either the username or password is incorrect, access is
                         denied, and an error message is displayed. Which type of conditional statement should Sonakshi
                         use to implement this logic?
                     2.   Manik, the class teacher of 7D, is developing a Python program to convert his students' marks into
                         corresponding grades. He aims to implement a logical framework that assigns the appropriate grade
                         based on the marks each student has achieved.




                           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.






                 In the Lab                                                                 Century   #Technology Literacy
                                                                                               21 st
                                                                                              Skills
                       Write  a  program  that  takes  two  integers  as  input  from  the  user.  Then,  the  program  should
                       compare the first number with the second number and determine if the first number is less than,
                       equal to, or greater than the second number.
                       Write a Python program that prompts the user to input their age and then checks whether the
                       person is eligible to vote. The eligibility criteria is that the person must be at least 18 years old.






                   Teacher's Corner

                      Discuss the conditional statements with the students giving the real life examples.
                      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.







                                                                                      Conditional Statements in Python  105
   102   103   104   105   106   107   108   109   110   111   112