THE IDEA
Understand the concept
A function begins with def and a name, followed by parameters in parentheses. A return statement gives a result to the caller; without it, a function returns None by default.
WORKED EXAMPLE

LESSON 05 ยท PYTHON
Define a function with def, pass inputs, and return a reusable result.
THE IDEA
A function begins with def and a name, followed by parameters in parentheses. A return statement gives a result to the caller; without it, a function returns None by default.
WORKED EXAMPLE