Environment Diagrams: Conceptual
Writing out environment diagrams
For each of the following functions, write out the environment diagrams.
def adder(num):
x = num + 1
y = add(x, num)
return y
adder(4)
def outer(n):
def inner(m):
y = n + m
return y
return inner
outer(6)(5)