

# https://www.globalsino.com/ICs/
# Access the local attribute externally 

def XYZ():
    if not hasattr(XYZ, "ThisIsTheAttribute"):
        XYZ.ThisIsTheAttribute = 0
    XYZ.ThisIsTheAttribute += 1
    return XYZ.ThisIsTheAttribute

# Access the local attribute
print(XYZ())
print(XYZ())
print(XYZ())
print(XYZ())
print(XYZ())
print(XYZ())
