T
Q. What is the output of the following code?
def add(init = 5, *nbr, **key): c = init for n in nbr: c+=n for k in key: c+=key[k] return c print(add(100,2,2, x=20, y=10))
The function adds 2, 2, 20 and 10 to the initial value 100, so the result is 134
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the output of the following program :
Q. What is the output, if set1 = {1, 2, 3}?
Q. Which of the following is not a conditional statement in Python?
Q. What will be the output of the following Python code?
Q. The output of this Python code would be
Q. What will be the output of the following Python code: print('Hello' * 3)?
Q. Which of the following data types is immutable in Python?
Discusssion
Login to discuss.