you can use classes to represent many real-world situations once you write classyou'll spend most of your time working with instances created from that class one of the first tasks you'll want to do is modify the attributes associated with particular instance you can modify the attributes of an instance directly or write methods that update attributes in specific ways the car class let' write new class representing car our class will store information about the kind of car we're working withand it will have method that summarizes this informationcar py class car()""" simple attempt to represent car "" def __init__(selfmakemodelyear)"""initialize attributes to describe car ""self make make self model model self year year def get_descriptive_name(self)"""return neatly formatted descriptive name ""long_name str(self yearself make self model return long_name title( my_new_car car('audi'' ' print(my_new_car get_descriptive_name()at in the car classwe define the __init__(method with the self parameter firstjust like we did before with our dog class we also give it three other parametersmakemodeland year the __init__(method takes in these parameters and stores them in the attributes that will be associated with instances made from this class when we make new car instancewe'll need to specify makemodeland year for our instance at we define method called get_descriptive_name(that puts car' yearmakeand model into one string neatly describing the car this will spare us from having to print each attribute' value individually to work with the attribute values in this methodwe use self makeself modeland self year at we make an instance from the car class and store it in the variable my_new_car then we call get_descriptive_name(to show what kind of car we have audi to make the class more interestinglet' add an attribute that changes over time we'll add an attribute that stores the car' overall mileage classes