結果 : check condition for each element in list python