Question
Computer Science Question on Miscellaneous
Consider that:
a = [20, 30, 40]
b=a
b[0] = 72
print (a)
The output will be :
A
[72, 30, 40]
B
[20, 30, 40]
C
Error
D
[72, 72, 72]
Answer
[72, 30, 40]
Explanation
Solution
The correct option is (A) : [72, 30, 40]