(continued from previous pagedef area(self)return math pi self radius** def main()print("center of the ring is at:"ring centermodify class variable ring(price= modify only price print("radius:{ }cost:{ }format( radiusr cost())if __name__ ='__main__'main(following are the results for above codepython pythonic py center of the ring is at radius: cost: attribute access before moving furtherlet us understand the attribute access ( variable in the classgetset and del in pythoneverything is an object and there are only three operations which can be applied to the objects get set delete these operations are used as belowfrom pythonic import ring ring( metal get operation 'copperr metal "goldset operation metal 'golddel metalr dater price delete operation metal traceback (most recent call last)file ""line in attributeerror'ringobject has no attribute 'metalr __dict__ only radius and quantity left {'radius' 'quantity' warningif attribute does not exist in the dictionarythen it will be createde in the below codewe used metals (plural metalsfor the metal name instead of metaltherefore new attribute will be created hencebe careful while setting the attributes of the class metals "ironadd item to dict __dict__ {'radius' 'quantity' 'metals''iron' attribute access