The Out of Scope Variable
Want to hear a joke? Sorry, humor is out of the scope of this course.
Python 3.5
a = 1def some_func():print(a)def another_func():a += 1print(a)some_func()another_func()
Why did we get an error?
Explanation
- When
Want to hear a joke? Sorry, humor is out of the scope of this course.
a = 1def some_func():print(a)def another_func():a += 1print(a)some_func()another_func()
Why did we get an error?