Only this week, get the SQL Complete Track of 9 courses in a special prize of $330 $89!
Function basics
9. Functions without return values


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


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.