Search for question
Question

4. (15 points) Consider the list L1 = [4, 5, 6, 8, 9]. Write Python statements for each of the following. a. Add the integer 23 to the end of

the list L1 b. Create a list L2 which consists of the first 3 elements of L1 c. Write a statement to reverse the elements of L1 d. Write the code to sort the elements in L1 in increasing order

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5