reading to and read_odometer(prints the reading audi this car has miles on it we can extend the method update_odometer(to do additional work every time the odometer reading is modified let' add little logic to make sure no one tries to roll back the odometer readingclass car()--snip- def update_odometer(selfmileage)""set the odometer reading to the given value reject the change if it attempts to roll the odometer back ""if mileage >self odometer_readingself odometer_reading mileage elseprint("you can' roll back an odometer!"now update_odometer(checks that the new reading makes sense before modifying the attribute if the new mileagemileageis greater than or equal to the existing mileageself odometer_readingyou can update the odometer reading to the new mileage if the new mileage is less than the existing mileageyou'll get warning that you can' roll back an odometer incrementing an attribute' value through method sometimes you'll want to increment an attribute' value by certain amount rather than set an entirely new value say we buy used car and put miles on it between the time we buy it and the time we register it here' method that allows us to pass this incremental amount and add that value to the odometer readingclass car()--snip-def update_odometer(selfmileage)--snip- def increment_odometer(selfmiles)"""add the given amount to the odometer reading ""self odometer_reading +miles my_used_car car('subaru''outback' print(my_used_car get_descriptive_name() my_used_car update_odometer( my_used_car read_odometer(