結果 : string index out of range python for loop