結果 : apply function to each element of a list python