Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions python proj/Dice_Rolling.py
Original file line number Diff line number Diff line change
@@ -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")