Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Function basics
9. Functions without return values
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.