Question #183

Python implements class variables.

Variables declared inside the class definition, but not inside a method are class or static variables. For instance:


class MyClass:
    i = 3

MyClass.i
3 
(toptal.com/python/python-class-attributes-an-overly-thoro...)


Comment on Disqus:

Question difficulty: ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต