Variable Scope
Variables inside (local) and outside (global) a function; the global keyword.
Simple enough for a 5-year-old to understand
Local vs global
A variable defined INSIDE a function lives only there (local). One defined outside is visible everywhere (global).
message = "outside"def write(): print(message)write()🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)