結果 : implement log function in python