Computer Science, asked by hsingh34, 5 hours ago

Q. Predict the output of following two parts. Are the outputs same? Are the outputs different? Why? Write the coding.


(a)

L1, L2 = [2, 4], [2, 4]

L3 = L2

L2[1] = 5

print(L3)


(b)

L1, L2 = [2, 4], [2, 4]

L3 = list(L2)

L2[1] = 5

print (L3)

Answers

Answered by nikhilrajgone2008
2

Explanation:

please make as thanks

please make as thanks

Attachments:
Answered by nihasrajgone2005
1

Answer:

refer to the attachment

please drop some ❤️❤️❤️

Explanation:

please f-o-l-l-o-w m-e bro

Attachments:
Similar questions