Mega Code Archive
Categories
/
Python Tutorial
/
Introduction
The identifiers listed in a global statement refer to the global variables that the function needs to rebind
_count = 0 def counter( ): global _count _count += 1 return _count