The identifiers listed in a global statement refer to the global variables that the function needs to rebind. : Variable Scope : Introduction PYTHON TUTORIALS


PYTHON TUTORIALS » Introduction » Variable Scope »

 

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



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Introduction
» Variable Scope