#NEWLINE# def apply_discount( line , discount , quantity ) : #NEWLINE# #INDENT# '\n    Apply a given discount to the passed basket\n    ' #NEWLINE# line . discount ( discount , line , incl_tax = False )