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
Q. What will be the output of the following code snippet?
Q. Which of the following types of loops are not supported in Python?
Q. What is the output of the expression : 3*1**3
Q. What is the output of the following code?
Q. Which of the following function headers is correct?
Q. What is the correct way to import the math module in Python?
Q. Is Python code compiled or interpreted?
Q. Which function is used to get the length of a string in Python?
Discusssion
Login to discuss.