結果 : python code using math library