Concept Flow - Why scope matters
Start program
Define variable x = 5
Enter function
Check if function uses global or local x
Uses local x
Local x created
Function ends
Print x outside function
End program
This flow shows how variables inside and outside functions can be different because of scope, affecting which variable is used or changed.