check for previous maximum
maxi = max ( a * b * c * d , maxi ) NEW_LINE if ( maxi == - 1 ) : NEW_LINE print ( " Not ▁ Possible " ) NEW_LINE else : NEW_LINE print ( " The ▁ maximum ▁ product ▁ is ▁ " , maxi ) NEW_LINE