## Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today. # score_yatzy method giving incorrect score

I am trying to figure out why may score_yatzy method is giving the wrong score. My method checks the hand for 5 dice and if the modulus of the sum of the dice value has a remainder.

Where is my thought process going wrong?

scoresheets.py
```class YatzyScoresheet:
def score_ones(self, hand):
return sum(hand.ones)

def _score_set(self, hand, set_size):
scores = 
for worth, count in hand._sets.items():
if count == set_size:
scores.append(worth*set_size)
return max(scores)

def score_one_pair(self, hand):
return self._score_set(hand, 2)

def score_chance(self, hand):
return sum(hand)

def score_yatzy(self, hand):
if len(hand) == 5 and sum(hand)%5 == 0:
return 50
return 0
``` 