mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-23 20:11:10 +00:00
Dice Roll
This commit is contained in:
parent
4eda20bccd
commit
1f252887e0
10
scripts/Dice Roll/main.py
Normal file
10
scripts/Dice Roll/main.py
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
import random
|
||||||
|
b=input("Do you want to roll the dice?y/n: ")
|
||||||
|
if b=='y':
|
||||||
|
a=int(input("Number of times you want to roll: "))
|
||||||
|
print("Result: ")
|
||||||
|
for i in range(0,a):
|
||||||
|
ans=random.randint(1,6)
|
||||||
|
print(i+1,".",ans)
|
||||||
|
else:
|
||||||
|
print("Good Bye!")
|
5
scripts/Dice Roll/readme.md
Normal file
5
scripts/Dice Roll/readme.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Dice Roll Game with PYTHON
|
||||||
|
|
||||||
|
#Steps :
|
||||||
|
Run - python main.py
|
||||||
|
Have a fun time!!
|
Loading…
Reference in New Issue
Block a user