結果 : apply function to entire list python