p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Functions II
Functions II
global scope
local scope
nested functions
enclosing scope
closures
function factory
global variables
local variables
NEXT
Introduction to Global and Local Scope
LESSON
Correctly Access Local Variable
CHALLENGE
Modify a Global Variable Inside a Function
CHALLENGE
Create a Global Variable Inside a Function
CHALLENGE
Introduction to Nested Functions
LESSON
Exercise: Nested Function Naming
CHALLENGE
Correctly Call Nested Function
CHALLENGE
Create Nested Function
CHALLENGE
Encapsulate Existing Function
CHALLENGE
Nested Functions and Enclosing Scope
LESSON
Exercise: Enclosing Scope
CHALLENGE
Exercise: Enclosing Scope II
CHALLENGE
Exercise: Scope Hierarchy
CHALLENGE
Introduction to Closures
LESSON
Exercise: Python Closure
CHALLENGE
Simple Counter with Closures
CHALLENGE