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