From 1b84f69ece5e03c7dba955f0248132a5a253f598 Mon Sep 17 00:00:00 2001 From: stathisraf Date: Sun, 15 Oct 2023 00:14:26 +0300 Subject: [PATCH] ready --- Python/Dice_Rolling_Simulator.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Python/Dice_Rolling_Simulator.py diff --git a/Python/Dice_Rolling_Simulator.py b/Python/Dice_Rolling_Simulator.py new file mode 100644 index 0000000..2140456 --- /dev/null +++ b/Python/Dice_Rolling_Simulator.py @@ -0,0 +1,13 @@ +import random + +number_of_dice = input("Hello, how many dice will you throw?") + +while int(number_of_dice) != 0: + + results = [] + + for dice in range(int(number_of_dice)): + results.append(random.randrange(1,7)) + print(results) + + number_of_dice = input("Hello, how many dice will you throw?") \ No newline at end of file