We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eda20b commit 1f25288Copy full SHA for 1f25288
scripts/Dice Roll/main.py
@@ -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
@@ -0,0 +1,5 @@
+Dice Roll Game with PYTHON
+
+#Steps :
+Run - python main.py
+Have a fun time!!
0 commit comments