See what we can offer to your school
"SimpleStudy just makes sense...”
Get the best plan for your school
13 cards from this deck
Variable created & used inside a subroutine
Variable only exists within its subroutine
When the subroutine starts running
When the subroutine finishes
No, cannot see or use them
Where in program a variable can be accessed and used
Error - variable not defined
NameError: name 'variable' is not defined
Keeps code tidy, variables only used where needed
Can't be accidentally changed by other program parts
Automatically cleaned up when subroutine ends
Same var names in different subroutines don't interfere
Use parameters
Select your subjects, and get access to A+ resources today.