結果 : function that accepts a list python