P
Q. What will be the output of the following Python code?
Code:
>>>list1 = [1, 3]
>>>list2 = list1
>>>list1[0] = 4
>>>print(list2)
>>>list2 = list1
>>>list1[0] = 4
>>>print(list2)
- Correct Answer - Option(C)
- Views: 196
- Filed under category Python
Discusssion
Login to discuss.