Q. What is the output of def multiply(*args): return args[0] * args[1] print(multiply(2, 3))?

A
5
B
6
C
[2, 3]
D
Error
Solution:

*args collects arguments, so multiply(2, 3) returns 2 * 3 = 6.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!