Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 157 - 2620_Birla Open Mind C-8
P. 157

    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.

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

| 152 153 154 155 156 157 158 159 160 161 162 |