python access class variable in static method code example Example: python class static variable >>> class MyClass: ... i = 3 ... >>> MyClass.i 3