Start with the list [8, 9, 10]. Do the following using list functions:(a) Set the second entry

Опубликовано: 11 Октябрь 2024
на канале: Portal Express
1,307
16

Start with the list [8, 9, 10]. Do the following using list functions:
(a) Set the second entry (index 1) to 17
(b) Add 4, 5 and 6 to the end of the list
(c) Remove the first entry from the list
(d) Sort the list
(e) Double the list
(f) Insert 25 at index 3

Website Link :-
https://www.pathwalla.com/2020/03/sta...

Answer =

(a)l. insert(2,17)
(b) l. append(4,5,6)
(c) l. pop(0)
(d) l. sort()
(e) l. extend(l)
(f) l. insert(3, 25)

start with the list 8 9 10 . to the following using list functions
start with the list 8 9 10
start with the list 8 9 10 . do the following using list functions
list manipulation class 11 notes
list manipulation in python class 11 notes