how are classes related to modules how are instances and classes created where and how are class attributes created where and how are instance attributes created what does self mean in python class how is operator overloading coded in python class when might you want to support operator overloading in your classes which operator overloading method is most commonly used what are two key concepts required to understand python oop codetest your knowledgeanswers classes are always nested inside modulethey are attributes of module object classes and modules are both namespacesbut classes correspond to statements (not entire filesand support the oop notions of multiple instancesinheritanceand operator overloading (modules do notin sensea module is like singleinstance classwithout inheritancewhich corresponds to an entire file of code classes are made by running class statementsinstances are created by calling class as though it were function class attributes are created by assigning attributes to class object they are normally generated by top-level assignments nested in class statement--each name assigned in the class statement block becomes an attribute of the class object (technicallythe class statement' local scope morphs into the class object' attribute namespacemuch like moduleclass attributes can also be createdthoughby assigning attributes to the class anywhere reference to the class object exists--even outside the class statement instance attributes are created by assigning attributes to an instance object they are normally created within class' method functions coded inside the class statementby assigning attributes to the self argument (which is always the implied instanceagainthoughthey may be created by assignment anywhere reference to the instance appearseven outside the class statement normallyall instance attributes are initialized in the __init__ constructor methodthat waylater method calls can assume the attributes already exist self is the name commonly given to the first (leftmostargument in class' method functionpython automatically fills it in with the instance object that is the implied subject of the method call this argument need not be called self (though this is very strong convention)its position is what is significant (exc+or java programmers might prefer to call it this because in those languages test your knowledgeanswers