Skip to content

Commit 1f25288

Browse files
committed
Dice Roll
1 parent 4eda20b commit 1f25288

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

scripts/Dice Roll/main.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import random
2+
b=input("Do you want to roll the dice?y/n: ")
3+
if b=='y':
4+
a=int(input("Number of times you want to roll: "))
5+
print("Result: ")
6+
for i in range(0,a):
7+
ans=random.randint(1,6)
8+
print(i+1,".",ans)
9+
else:
10+
print("Good Bye!")

scripts/Dice Roll/readme.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Dice Roll Game with PYTHON
2+
3+
#Steps :
4+
Run - python main.py
5+
Have a fun time!!

0 commit comments

Comments
 (0)