Home / Programming MCQs / Python MCQs / Question
R
Q. 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 #main s=[1,2,3] change(s)
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which commands return the columns of a dataframe?
What will be the output of the following program on execution?
Which of the following is not a keyword?
Which among the following list of operators has the highest precedence? +, -, **, %, /, <<, >>, |
Python programming language allows to use one loop inside another loop known as?
What is the order of namespaces in which Python looks for an identifier?
Discusssion
Login to discuss.