結果 : how to correctly create a function in python