def __init__(selfmakemodelyear)"""initialize attributes of the parent class ""super(__init__(makemodelyeary my_tesla electriccar('tesla''model ' print(my_tesla get_descriptive_name()at we start with car when you create child classthe parent class must be part of the current file and must appear before the child class in the file at we define the child classelectriccar the name of the parent class must be included in parentheses in the definition of the child class the __init__(method at takes in the information required to make car instance the super(function at is special function that helps python make connections between the parent and child class this line tells python to call the __init__(method from electriccar' parent classwhich gives an electriccar instance all the attributes of its parent class the name super comes from convention of calling the parent class superclass and the child class subclass we test whether inheritance is working properly by trying to create an electric car with the same kind of information we' provide when making regular car at we make an instance of the electriccar classand store it in my_tesla this line calls the __init__(method defined in electriccarwhich in turn tells python to call the __init__(method defined in the parent class car we provide the arguments 'tesla''model 'and aside from __init__()there are no attributes or methods yet that are particular to an electric car at this point we're just making sure the electric car has the appropriate car behaviors tesla model the electriccar instance works just like an instance of carso now we can begin defining attributes and methods specific to electric cars inheritance in python in python inheritance is slightly different the electriccar class would look like thisclass car(object)def __init__(selfmakemodelyear)--snip-class electriccar(car)def __init__(selfmakemodelyear)super(electriccarself__init__(makemodelyear--snip-classes