#NEWLINE# def poly_mul( o , poly1 , poly2 ) : #NEWLINE# #INDENT# global zero #NEWLINE# p = [ zero ] #NEWLINE# for ( i , c1 ) in enumerate ( poly1 ) : #NEWLINE# #INDENT# p2 = ( ( [ zero ] * i ) + [ c1 . mod_mul ( c2 , o ) for c2 in poly2 ] ) #NEWLINE# p = poly_add ( o , p2 , p ) #NEWLINE# #UNINDENT# return p