Computer Science, asked by mudit11, 1 year ago

Write a dice rolling program in python.

✓ 8 points.

✓ Write well.

✓ Best program - gets brainliest

All the best.

@mudit11

Answers

Answered by naman112
2
This is a classic "roll the dice" program. We will be using the random module for this,since we want to randomize the numberswe get from the dice. We set two variables (min and max) , lowest and highest number of the dice. We then use a while loop, so that the user can roll the dice again. The roll_again can be set to any value, but here it's set to "yes" or "y", but you can also add other variations to it.
Similar questions