Question: Scope defines where variables can be accessed. What variables are within the scope of the inner 2 function? q = 1 def outer 1 (
Scope defines where variables can be accessed. What variables are within the scope of the inner function?
q
def outeri:
j i
def outer:
k j
def inner:
m k
def inner:
n q m
return n
m inner
return m
k inner
return k
j outer
return j
print outer outer
a
n m k j i q
b
j k i m n p q
c
n m k j i
d
n m q
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
