diff --git a/python proj/Dice_Rolling.py b/python proj/Dice_Rolling.py new file mode 100644 index 0000000..25c117c --- /dev/null +++ b/python proj/Dice_Rolling.py @@ -0,0 +1,13 @@ +import random +print("-: Welcome to Dice Rolling Game :-") +while True: + choice= input("Do you want to play?[Y/N]: ") + if choice.lower()=="y": + print("Rolling the dice...") + number=random.randint(1,6) + print("The number on the dice is: ",number) + elif choice.lower()=="n": + print("Ending the game...") + break + else: + print("Invalid choice")