of courseyou may want to know why you can' simply add the two inputs together as you would number the answer is that you' end up with tuple as an outputrather than myclass as an output the type of the output would be changedand that would also change any use of the resulting object to print myclass properlyyou also need to define __str__(method this method converts myclass object into string in this casethe output is space-delimited string (in which each of the items in the string is separated from the other items by spacecontaining each of the values found in self input of coursethe class that you create can output any string that fully represents the object the main procedure creates two test objectsvalue and value it adds them together and places the result in value the result is printed onscreen choose runrun module figure - shows the result of adding the two objects togetherconverting them to stringsand then printing the result it' lot of code for such simple output statementbut the result definitely demonstrates that you can create classes that are self-contained and fully functional figure - the result of adding two myclass objects is third object of the same type creating class all the previous material in this has helped prepare you for creating an interesting class of your own in this caseyou create class that you place into an external module and eventually access within an application listing - shows the code that you need to create the class this example also appears with the downloadable source code as myclass py