2 Topics

Member Avatar for
Member Avatar for flebber

I am reading the book for web2py. It is running through some python syntax examples. When I ge to this closure example I am not understanding how 'y' gets its value. This is the code. >>> def f(x): def g(y): return x * y return g >>> doubler = f(2) …

Member Avatar for flebber
0
146
Member Avatar for Pravinrasal
Member Avatar for Airshow
0
269

The End.