結果 : math max equivalent in python