[Tutor] Generator next()
Steven D'Aprano
steve at pearwood.info
Sun Dec 29 13:42:00 CET 2013
On Sun, Dec 29, 2013 at 10:33:15PM +1100, Steven D'Aprano wrote:
> def f(x):
> print("Inside the outer function x =", x)
> def g(y): # a function nested inside another function
> print("Inside the inner function x =", x)
> print("Inside the inner function y =", y)
> return x + y
> return f(23)
Oops, sorry a typo crept into this. That last line ought to be
"return g(23)". Sorry for any confusion.
--
Steven
More information about the Tutor
mailing list