結果 : how to write pseudocode for function in python