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 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
fast please
Answers
Answered by
2
li = [8,9,10]
li[1] = 17
li.append(4)
li.pop(0)
li.sort()
li = li * 2
li[3] = 25
Answered by
1
Answer:
li = [8,9,10]
li[1] = 17
li.append(4)
li.pop(0)
li.sort()
li = li * 2
li[3] = 25
Similar questions