Question: What is the output of this code? nested _ list = [ [ 1 , 2 ] , [ 3 , 4 ] ] second

What is the output of this code?
nested_list =[[1,2],[3,4]]
second_list = nested_list[1]
second_list[1]=-1
first_element = nested_list[0][0]
first_element =-1
print(nested_list[0][0], nested_list[1][1])
Group of answer choices
-1-1
14
-14
1-1

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 Databases Questions!