Page 90 - tp_Modula_v2.0
P. 90
Critical Thinking
F. What will be the output of the following programs?
1. list=[13, 25, 41, 63, 82] 2. list=[13, 25, 41, 63, 82]
list[1]=50 list.append(19)
list[3]=45 print(list)
print(list[:])
3. list=[13, 25, 41, 63, 82] 4. list=[13, 25, 41, 63, 82]
list.insert(1, 302) list1=[14, 26, 42, 64]
print(list) print(len(list))
print(max(list))
print(min(list))
In the lab Technology Literacy
Write a program 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.
Teacher's Corner
1. Discuss about different operations of list with the students.
2. Explain the difference between indexing and negative indexing to the students.
88 Touchpad MODULAR (Version 2.0)

