Mega Code Archive
Categories
/
Python Tutorial
/
Function
Within a function, you cant use both local and global versions of the same name
X = 99 def selector( ): import __main__ print __main__.X X = 88 print X selector( )