Q161
What will be the output of the following Python code? #mod1 def change(a): b=[x*2 for x in a] print(b) #mod2 def change(a): b=[x*x for x in a] print(b) from mod1 import change from mod2 import change #main s=[1,2,3] change(s)
A.
[2,4,6]
B.
[1,4,9]
C.
[2,4,6]
[1,4,9]
[1,4,9]
D.
There is a name clash
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board