結果 : how to write a def function in python