1Variables declared inside the class definition, but not inside a method are class or static variables:
2
3>>> class MyClass:
4... i = 3
5...
6>>> MyClass.i
73
8As @millerdev points out, this creates a class-level i variable, but this is distinct from any instance-level i variable, so you could have
9
10>>> m = MyClass()
11>>> m.i = 4
12>>> MyClass.i, m.i
13>>> (3, 4)