From 7cf3c7662b7cf624706ff251029e77f735ceebf2 Mon Sep 17 00:00:00 2001 From: Srinjay-hack Date: Sat, 2 Oct 2021 10:26:25 +0530 Subject: [PATCH] rolling-dice --- rollig_dice.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 rollig_dice.py diff --git a/rollig_dice.py b/rollig_dice.py new file mode 100644 index 0000000..02b09a7 --- /dev/null +++ b/rollig_dice.py @@ -0,0 +1,22 @@ + +import random + + +min_val = 1 +max_val = 6 + +roll_again = "yes" + +#loop +while roll_again == "yes" or roll_again == "y": + print("Rolling The Dices...") + print("The Values are :") + + + print(random.randint(min_val, max_val)) + + + print(random.randint(min_val, max_val)) + + + roll_again = input("Roll the Dices Again?") \ No newline at end of file