PythonSkills.org
Courses
Exercices
Challenges
Quizzes
Open console
0 points
Get started
Loading...
Learnig Path /
Python Basics
Scope and lifetime of variables
Loading...
Python Terminal
Loading Python...
If it doesn't load, refresh the page.
Loading...
Run Code
Clear
Previous lesson:
Defining Functions
Next Lesson:
Built-in functions
Exercices
7
Need Help? Go Back to the Lesson
Local Scope Example
Global Scope Example
Variable Lifetime
Using Global Variables Inside Functions
Naming Conflict Between Local and Global Variables
Modify Global Variable Inside Function
Global Variable Access in Multiple Functions
0% complete
0/167
Python Basics
167 exercices
+
Lists Comprehension
100 exercices
+
Object-Oriented Programming
69 exercices
+