Grouping of Scores
A player has collected few colored balls which have a number on them.
To calculate score, we have to group the colored balls picked by user and sum up the numbers on them.
write a program to create a dictionary, grouping of colored balls and the corresponding total score.
Comments
Leave a comment