Question: What is the outcome of running the following program code? a = [ 1 0 , 2 0 , 3 0 , 4 0 ,

What is the outcome of running the following program code?
a =[10,20,30,40,50,60,70]
a[len(a):len(a)]=[5,6]
Question 25 options:
a becomes [10,20,30,40,50,60,5,6,70]
a becomes [10,20,30,40,50,60,70,5,6]
a becomes [10,20,30,40,50,60,5,6]
a becomes [5,6,10,20,30,40,50,60,70]

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!