6 out of 6 users completed this Bite ...
Will you be Pythonista #7 to crack this Bite?
Average Bite difficulty 1-10 rating: 1.0
» You can do it! 😌
Complete the two functions below:
calculate_scoretakes a list of dice roll
scoresand returns the total score only taking into account scores of
>= MIN_SCORE. If scores contains invalid data (
!= DICE_VALUES) raise a
calculate_scorehelper to calculate the winning player from a list of
Player namedtuples. However if the players passed in are not having the same number of scores (e.g. all have 4 scores) you should raise a
pytestcode for more info. Keep calm and code in Python, happy Cyber Monday!