結果 : how to apply a function to every element in a list python