結果 : python test if list index exists