Assessment: Understanding Functions

Sep 30, 2014 • Maneesha Sane
def print_sum(x,y):
    """Type something here"""
    print x + y
    return

Read the function above and complete the following exercises.

Exercise 1: Multiple Choice question
What will print_sum(4, 5) return?
A. Nothing (None)
B. 45
C. 9
D. False

Exercise 2: Understanding docstrings
Replace the text “Type something here” in the function above with whatever you think is appropriate.