Question: a . Create the following two lists for the two sequences below with q 4 L 1 and q 4 L 2 as the variable

a. Create the following two lists for the two sequences below with q4L1 and q4L2 as the variable names respectively: Use square brackets and create list q4L1 as follows: 14,18,20,13,14,14,20,50,22 Convert the tuple q2t2 into a list and save it as q4L2. b. Print the two lists. c. Add the element 25 to q4L1 using the append() method. Print the list and verify. d. Make a new copy of the list q4L2 and add the element, a list, ['torque' 'price'] to it using the append() method. e. Make a another new copy of the list q4L2 and add the element, a list, ['torque' 'price'] to it using the extend() method. f. Discuss the difference between (d) and (e).

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!