
Jacob V.
asked 04/08/20I need help creating a wins dictionary and a losses dictionary to keep track if the number of games won or lost for a particular number of rolls.
I can provide the code i have already
More
1 Expert Answer

Joey G. answered 04/18/20
Tutor
New to Wyzant
Bachelors Degree in Computer Science
I hope this answers your question.
Here, I used a dictionary to store the amount of wins and losses from a roll of a die.
If the roll is even we count that as a win, if the roll is odd we count it as a loss.
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Ethan Z.
Could you be more specific? I'm not quite sure what the rolls are, nor what kind of information you're storing in the dictionary.04/10/20