City University of Seattle Python Programming Code Project
Description
You should write a .py program that rolls two dices 100 times and shows the results as the sum of the two dices.
Each toss should be random like in real life.
Use standard dices with values from 1 to 6.
Strategies:
Roll each dice once inside a for loop. For this, you will need the random library (import random).
A way of doing it is using random.randint(1,6)
Store the result from each dice in a list (so you will need two lists).
Sum the corresponding tosses and display the results. So, if dice one is 3 and dice two is 4, display 7.
Additionally, display the most frequent sum generated out of the 100 tosses.
The results should be displayed ‘nicely’, basically without the brackets. Think about showing the results to a ‘human’ user.
Each time you call this program, results should be different.
Run the program till the user wants to quit.
You must use at a minimum two functions.
Honor code applies, no cheating, no collaboration, no code sharing, no copy-and-paste!
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."