Question: Language is Python Write a program that repeatedly rolls a 6 sided die until there are two rolls in a row that are the same.

 Language is Python Write a program that repeatedly rolls a 6

Language is Python

Write a program that repeatedly rolls a 6 sided die until there are two rolls in a row that are the same. You should use randomity to make it equally likely that any number will appear. Each time the die is rolled, display 1-6 for the number that appears. Here is possible output: 1 4 3 5 2 6 3 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!