Q. What is the output of def multiply(*args): return args[0] * args[1] print(multiply(2, 3))?
Solution:
*args collects arguments, so multiply(2, 3) returns 2 * 3 = 6.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
*args collects arguments, so multiply(2, 3) returns 2 * 3 = 6.
Strengthen Your Practice with our comprehensive question bank.