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






_count = 0
def counter( ):
    global _count
    _count += 1
    return _count








1.6.Variable Scope
1.6.1.The identifiers listed in a global statement refer to the global variables that the function needs to rebind.