Solved

What Is the Output of the Following Piece of Code

Question 43

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents