Skip to content

Commit

Permalink
Create dice.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amithlal200047 authored Oct 17, 2021
1 parent 46cad54 commit 08c6383
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Python/dice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import random
min = 1
max = 6

roll_again = "yes"

while roll_again == "yes" or roll_again == "y":
print "Rolling the dices..."
print "The values are...."
print random.randint(min, max)
print random.randint(min, max)

roll_again = raw_input("Roll the dices again?")

0 comments on commit 08c6383

Please sign in to comment.