2 ms·
a = [1, 2] b = a b[0] = 3 print(a) What does the above print? If the language implements reference semantics, it prints [3, 2]. If it implements value seman
by marcosdumay 4y ago
a = [1, 2]
b = a
b[0] = 3
print(a)
What does the above print? If the language implements reference semantics, it prints [3, 2]. If it implements value semantics, it prints [1, 2].
- Jemaclus 4y agoThank you