結果 : method object is not subscriptable error in python