read static variable of class python code example Example: python class static variable >>> class MyClass: ... i = 3 ... >>> MyClass.i 3