Page 141 - TP_Play_V2.2_Class8
P. 141

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






                          DIY In The Lab                                         Century   #Technology Literacy
                                                                                   21 st
                                                                                  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.  Traverse 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 positive indexing and negative indexing to the students.






























                                                                                                     #List in Python 139
   136   137   138   139   140   141   142   143   144   145   146