#NEWLINE# def sell( self , quantity , price , commission = 0.0 ) : #NEWLINE# #INDENT# assert ( quantity > 0 ) , 'Invalid quantity' #NEWLINE# self . update ( ( quantity * ( - 1 ) ) , price , commission )