Welcome to the Treehouse Community
Looking to learn something new?
Christos Sakkas6,623 Points
why it doesnt work?
class Game: def __init__(self): self.current_score = [0, 0] def score(self, player): self.current_score[player] = self.current_score[player] + 1
Joseph Kato35,340 Points
The issue is that
player will be a value of either 1 or 2 and
self.current_score only has two elements (note:
list indexes start at 0).