Given lst = [30, 1, 2, 1, 0], what is the list after applying each of the fol- lowing statements? Assume that each line of code is independent. lst.append(40) lst.insert(1, 43) lst.extend([1, 43])...


Given lst = [30, 1, 2, 1, 0], what is the list after applying each of the fol-
lowing statements? Assume that each line of code is independent.


lst.append(40)
lst.insert(1, 43)
lst.extend([1, 43])
lst.remove(1)
lst.pop(1)
lst.pop()
lst.sort()
lst.reverse()
random.shuffle(lst)



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here