What is the output of the following piece of 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
#mains=[1,2,3]
Change(s)
A) [2,4,6].
B) [1,4,9].
C) [2,4,6]
D) There is a name clash
Correct Answer:
Verified
Q38: What is the output of the following?
Elements
Q39: What is the output of the following?
Elements
Q40: What is the output of the following?
Def
Q41: What is the output of the following?
X
Q42: Program code making use of a given
Q44: What is the output of the following
Q45: Which of the following formatting options can
Q46: What is the output of the following
Q47: To read the entire remaining contents of
Q48: Suppose t = (1, 2, 4, 3),
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents