On 08/07/13 07:26, Tim Hanson wrote:
In the first Lutz book, I am learning about nested functions.
def f1():
x=88
def f2():
print(x)
x=99
print(x)
f2()
f1()
Traceback (most recent call last):
print(x)
Un
On 07/08/2013 02:26 AM, Tim Hanson wrote:
In the first Lutz book, I am learning about nested functions.
Here's the book's example demonstrating global scope:
def f1():
x=88
def f2():
print(x)
f2()
f1()
88
But that's not global scope, it's
On Mon, Jul 8, 2013 at 8:26 AM, Tim Hanson wrote:
> In the first Lutz book, I am learning about nested functions.
>
> Here's the book's example demonstrating global scope:
> >>> def f1():
> x=88
> def f2():
> print(x)
> f2()
>
>
> >>> f1()
> 88
>
> No prob