Introduction
Function basics
9. Functions without return values
More advanced concepts
Summary

Instruction

That's right! Before we continue, let's perform a simple experiment: what happens when we forget the return statement in our function?

Exercise

Look at the template code. Everything seems fine, except that we forgot about return score at the end of our function. What will be printed to the output when we invoke print(factorial(5)), then? Run the code.

As you can see, functions without return statements return None. We'll talk about None later in the course.