Я написал эту функцию:Index ошибка: индекс присваивание списка из диапазона
def replace(self, pos, note):
"""
Replace the score of the participant at the given position with a new score
Input: pos, note - integer
Output: the old score was replaced
"""
scores = self.repo.getAll()
scores[pos] = note
return scores
Где GETALL определен в классе participantRepo следующим образом:
def getAll(self):
return self._participantList[:].
Моя проблема заключается в том, что я не понимаю, ошибка Я продолжаю получать