[Tutor] help, thanks very much.
Brendan Rankin
brendan.rankin at gmail.com
Wed Jan 16 05:58:27 CET 2008
bill.wu <bill.wws <at> gmail.com> writes:
>
>
>
> i am new guy.
> i ask a easy question.
>
> why the first one have"x",the second one doesn't have "x". what
> is different? when write "x",when don't write "x".
>
> in my point,the second one don't def variable.
>
>
Variable scope. By declaring the x as "global", any changes to x in func() will
affect x outside the function, as well.
More information about the Tutor
mailing list