Question: A. Using python, create two lists as follows: list1 = [1,2,3,4]and list2 = [6,7,8,9]. i. Add number 5 to list1 ii. Print list1 iii. Concatenate

A. Using python, create two lists as follows: list1 = [1,2,3,4]and list2 = [6,7,8,9].

i. Add number 5 to list1

ii. Print list1

iii. Concatenate the two lists and name it "L". Print it.

iv. Remove number 7 from L. Print new list L

v. Remove the index 1 element of L. Print new list L

vi. Remove elements from index 0 to 3. Print final list L

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!