Python is unlike other languages in that it does not have a traditional notion of scope. You can create a variable inside of conditional, but still access that same variable outside of the conditional. As we see in this video, this has important ramifications for testing your code.
- Tags
-