docs

a slatepencil documentail site

View on GitHub

For each of the following functions, specify the type of the output.

1.

>>> a = 10
>>> def f(x):
        return x + a
>>> a = 3
>>> f(1)

2.

>>> x = 12
>>> def g(x):
        x = x + 1
        def h(y):
            return x + y
        return h(6)
>>> g(x)