Quiz: Functions

Test your knowledge regarding functions.

1

(Select all that apply.) Which is the correct syntax to return value from the function?

A)
def add(a,b): 
    c = a+b 
    return c
B)
def add(a,b): 
    return a+b 
C)
def add(a,b): 
    return c = a+b 
D)
def add(a,b):
    c == a+b
    return c 
Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.