結果 : how to apply a function to all elements of a list python