example of how objects workarrays while lists have their usesin scientific computingarrays are the central object most of our discussion of arrays has focused on functions that create and act on arrays arrayshoweverare objects like any other object and have attributes and methods built-in to themarrays are more than just sequence of numbers let' look at an example list of all the attributes and methods of an array objectexample (examining array object attributes and methods)in the python interpretertype ina reshape( arange( )( , )now typedir(awhat do you seebased on their namesand your understanding of what arrays arewhat do you think some of these attributes and methods dosolution and discussionthe dir command should give you list of lot of stuff ' not going to list all the output here but instead will discuss the output in general terms we first notice that there are two types of attribute and method namesthose with double-underscores in front and in back of the name and those without any preor post-pended double-underscores we consider each type of name in turn very few double-underscore names sound like data the doc doublevariable is one such attribute and refers to documentation of the object most underscore of the double-underscore names suggest operations on or with arrays ( attribute and adddivetc )which is what they arethose names are of the methods of the method array object that define what python will do to your data when the interpreter names sees "+""/"etc thusif you want to redefine how operators operate on arraysyou can do so it is just matter of redefining that method of the object that being saidi do notin generalrecommend you do so in pythonthe double-underscore in front means that attribute or method is "very prisinglevate ( variable with single underscore in front is privatebut not as underscore private as double-underscore variable that is to sayit is an attribute or attribute and method that normal users should not accesslet alone redefine python does method nothoweverdo much to prevent you from doing soso advanced users who names need to access or redefine those attributes and methods can do so