<AptiCode/>

Question 521: What will be the output of the following Python code?x =[1, 2, 3]y = x y[0] = 10 print(x)

tcs
wipro
infosys
general
aptitude
tricky-questions

Bothxandyreference the same list object. Therefore, modifyingyalso modifiesx, resulting in the output[10, 2, 3].