common-coding-conventions

Python Specific Advice

OOP in Python

General Coding

Further down the Pythonic road

Example

class Employee(Person):           # inheritance
  count = 0                       # static attr. (shared by all instances)

  def __init__(self, name: str):  # constructor
     super().__init__()
     Employee.count += 1
     self.name = name             # local attr. (local to one instance)
  
     print(Employee.count)