結果 : how to write exp function in python