結果 : index out of bounds error in python