結果 : how to write a map function in python