This script simulates rolling a pair of six-sided dice. Each roll produces two independent random numbers between 1 and 6, printed together as a tuple. You control the pace — roll as many times as you like, then quit when you’re done.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/muhammadalamzeb/python_projects/llms.txt
Use this file to discover all available pages before exploring further.
How to run
Gameplay
At each prompt, the game asksRoll the dice? Y/N:.
| Input | What happens |
|---|---|
Y | Rolls both dice and prints the result |
N | Exits the program |
| Anything else | Prints "Invalid input. Please enter Y or N." and prompts again |
random.randint(1, 6), so every number from 1 to 6 is equally likely for each die.
Input is case-insensitive. The script calls
.lower() on your input, so y, Y, n, and N are all accepted.