Constructor

A constructor is a unique function that sets up an object’s attributes upon its creation. In C++ or Java, it shares the name of the class, but in python, it’s called __init__.