結果 : check if list has index python