Page 146 - Trackpad_V5_Book 7
P. 146

21 st   #Experiential Learning
            5.  Competency-based/Application-based questions:                            Century   #Interdisciplinary
                                                                                           Skills
               a.   Simran is creating a Python program for her school maths project. She wants to create a relation
                  chart between various data types. What type of operators should she use?

                ______________________________________________________________________________________
               b.   Anaya works as a programmer in an organisation where she has written the Python code. In that code,
                  she skipped the closing parenthesis with the print function. Which type of error occurred in her code?

                ______________________________________________________________________________________


                                                                                        21 st
                   LAB ACTIVITY                                                       Century   #Technology Literacy
                                                                                        Skills
                   Visit your computer lab and perform the following actions.
                        Write a program to enter two numbers and print their difference.
                        Write a program to calculate the area of a triangle.
                        Write a program to calculate average of 6 numbers.
                       Write a program to convert Kilometres into Metres and Centimetres.



                    COding Zone       COding Zone     {}      =     COding Zone
                                                                                     21 st
                           {C ding z ne}
                                                                                        #Computational Thinking
                                                                                   Century
                                                                                    Skills
                                                                    </>
                What will be the output of the following programs?
                a.  a = 4.5                          d.  a = 4
                  b = 2                                b = 11
                  print (a//b)                         print(a or b)
                  ________________________             print(a > 2)

                b.  y = 10                             ________________________
                  y += 2                             e.  a = 7
                  print(y)                             b = 8
                  ________________________              print((50 - 6 // a) > 9 or 9 ** b > 11)

                c.  p, q, r = 10, 20 ,30               ________________________
                  print(p, q, r)                     f.  a = 10
                  ________________________             b = 4
                                                       print((a == 6) + b)
                                                       ________________________






                   CAREER HERE

            People who are expert in Python may pursue their career as a Software Developer.



               FOR THE TEACHER
              1.  Explain various types of data types in detail.

              2.  Give small programs related to interesting, real-life examples to the students.



            144   Pro (Ver. 5.0)-VII
   141   142   143   144   145   146   147   148   149   150   151