Page 137 - Plus V4 with Adobe class 8
P. 137

3.  Competency-based/Application-based questions:

                       a.   Sonam has created a project in which she has created a list of all the names of students who are
                         willing to attend annual competition but she is unable to change the names of some students.
                         What can she use to change the elements of a list?

                       b.   Your brother Indrajit created a list of daily household needs, from which he will later need to
                         remove some items and add more. Suggest the proper method he can use to do so.







                          Scan the QR code and attempt the quiz.






                                                                              21 st
                     DIY In The Lab                                         Century   #Technology Literacy
                                                                              Skills
            To
            Subject   Coding

              Write a program in python to:

              1.  create a list with the following values: [4, 9, 10, 28]
              2.  create a nested list with the following values: [4, 9, 10, 28] and [7, 11, 13, 48]

              3.  traversing a list [4, 9, 10, 28] by using negative indexing.

              4.  change the elements of a list [4, 9, 10, 28, 87, 98] at index 1 and 4 to 45 and 55 respectively.





            For The Teacher
               Discuss about different operations of list with the students.
               Explain the difference between indexing and negative indexing to the students.






























                                                                                                #List in Python 135
   132   133   134   135   136   137   138   139   140   141   142