Question:

Consider that:
a = [20, 30, 40] 
b=a 
b[0] = 72 
print (a)
The output will be : 

Updated On: Oct 18, 2024
  • [72, 30, 40]
  • [20, 30, 40]
  • Error
  • [72, 72, 72]
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

The correct option is (A) : [72, 30, 40]
Was this answer helpful?
0
0