結果 : pop index out of range error in python