Q. What does def add(a, b): return a + b print(add(3, 4)) output?

A
7
B
34
C
3 + 4
D
Error
Solution:

add(3, 4) returns 7, as the function adds the arguments and prints the result.

Entri Contact Image

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