pytthon class variable instance variable code example
Example 1: instance variable in python
class Car: wheels = 4 # <- Class variable def __init__(self, name): self.name = name # <- Instance variable
Example 2: what is a ython instance
An object belonging to a class. e.g. if you had an Employee class, each
individual employee would be an instance of the Employee class