how to access static variables inside a class in python code example Example: python class static variable >>> class MyClass: ... i = 3 ... >>> MyClass.i 3