type the following code into the window -pressing enter after each lineclass myclassdef __init__(self*args)self input args def __add__(selfother)output myclass(output input self input other input return output def __str__(self)output "for item in self inputoutput +item output +return output value myclass("red""green""blue"value myclass("yellow""purple""cyan"value value value print("{ { { }format(value value value )the example demonstrates few different techniques the constructor__init__()demonstrates method for creating an instance variable attached to the self object you can use this approach to create as many variables as needed to support the instance when you create your own classesno operator is defined until you define onein most cases the only exception is when you inherit from an existing class that already has the operator defined (see the "extending classes to make new classessectionlater in this for detailsin order to add two myclass entries togetheryou must define the __add__(methodwhich equates to the operator the code used for the __add__(method may look little oddtoobut you need to think about it one line at time the code begins by creating new objectoutputfrom myclass nothing is added to output at this point -it' blank object the two objects that you want to addself input and other inputare actually tuples (see "working with tuples,in for more details about tuples the code places the sum of these two objects into output input the __add__(method then returns the new combined object to the caller