結果 : how to write function in python with example