its state information in place with an assignment this task also involves basic operations that work on python' core objectsregardless of whether they are standalone or embedded in class structure ( ' formatting the result in the following to mask the fact that different pythons print different number of decimal digits)pay pay * print(' fpay simple variableoutside class give raise orpay pay if you like to type orpay pay (pay )if you _really_ doto apply these operations to the person objects created by our scriptsimply do to bob name and sue pay what we just did to name and pay the operations are the samebut the subjects are attached as attributes to objects created from our classprocess embedded built-in typesstringsmutability class persondef __init__(selfnamejob=nonepay= )self name name self job job self pay pay if __name__ ='__main__'bob person('bob smith'sue person('sue jones'job='dev'pay= print(bob namebob payprint(sue namesue payprint(bob name split()[- ]extract object' last name sue pay * give this object raise print(' fsue paywe've added the last three lines herewhen they're runwe extract bob' last name by using basic string and list operations on his name fieldand give sue pay raise by modifying her pay attribute in place with basic number operations in sensesue is also mutable object--her state changes in place just like list after an append call here' the new version' outputbob smith sue jones smith the preceding code works as plannedbut if you show it to veteran software developer he or she will probably tell you that its general approach is not great idea in practice hardcoding operations like these outside of the class can lead to maintenance problems in the future for examplewhat if you've hardcoded the last-name-extraction formula at many different places in your programif you ever need to change the way it works (to support new name structurefor instance)you'll need to hunt down and update every occurrence similarlyif the pay-raise code ever changes ( to require approval or dastep adding behavior methods