Locked lesson.
About this lesson
Understanding Program Flow in Python, and how functions can change that flow.
Exercise files
Download this lesson’s related exercise files.
Program Flow.docx59.2 KB Program Flow - Solution.docx
59.2 KB
Quick reference
Program Flow
Where you place your function code is important!
When to use
Use these concepts whenever you create functions.
Instructions
It's important that your function code gets read into memory by Python BEFORE you try to call the function.
Pay attention to functions inside of other functions.
Make sure the other function has been read into memory before you call it in another function.
Hints & tips
- Put all your functions at the top of your program!
Lesson notes are only available for subscribers.