class account '' class representing an account '' class attributes num_of_accounts constructor def __init__(selfnumperson) self balance self number num self holder person account num_of_accounts + methods main part of the program if __name__=="__main__" print(account num_of_accounts"accounts have been created " annesacc account( "anne" annesacc deposit( stefansacc account( "stefan" print(account num_of_accounts"accounts have been created the image on the previous page shows that the num of accounts attribute resides within the account class object so farwe have seen the conceptclass objects can have attributestooand we assign them in the namespace of the class (either in the class with the correct indent or using classname attributenamehoweverwe can also access the class attributes via instance objects that were created from the classas the interactive session shows account num_of_accounts annesacc num_of_accounts stefansacc num_of_accounts the image on the previous page also explains why that is as beforepython starts searching for an attribute in the instance objectif it doesn' find itit moves on the class from which the object was created henceall of the above statements access the same attribute (the class attribute of the account classif it is changed ( by creating yet another account object)we can see the following output andreasacc account( "andrea"account num_of_accounts annesacc num_of_accounts stefansacc num_of_accounts annemarie friedrichcis lmu munchenws /