Santosh Kumar <[email protected]> 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

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to