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 qL and qL as the variable names respectively: Use square brackets and create list qL as follows: Convert the tuple qt into a list and save it as qL b Print the two lists. c Add the element to qL using the append method. Print the list and verify. d Make a new copy of the list qL and add the element, a list, torque 'price' to it using the append method. e Make a another new copy of the list qL 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
