[Tutor] calling global in funtions.
Dave Angel
davea at davea.name
Wed Feb 26 12:28:18 CET 2014
Santosh Kumar <rhce.san at gmail.com> Wrote in message:
>
Requirement : i want to call a variable assigned outside a function scope anytime
> within the function. I read "global" is a way.
>
Your sample code doesn't do any calling. But if your design
requires you to assign to a global from inside a function, then
the global declaration is the correct way. And the global
statement should be at the beginning of the function.
--
DaveA
More information about the Tutor
mailing list