#NEWLINE# def __add__( self , ob ) : #NEWLINE# #INDENT# if isinstance ( self , Matrix ) : #NEWLINE# #INDENT# summation = self . matrixAddition ( ob ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# summation = self . scalarAddition ( ob ) #NEWLINE# #UNINDENT# return Matrix ( self . rows , self . cols , summation )