Core: learn it Step 6 of 16 on the Python Developer roadmap
Defining and returning
Use def to create a function and return to hand a result back. Understand the difference between printing a value and returning it: only a returned value can be used later in your program.