Skip to content

Instantly share code, notes, and snippets.

@davidlivingrooms
Created July 3, 2017 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save davidlivingrooms/758aa9932a455d01ac020b13e5315ea7 to your computer and use it in GitHub Desktop.
Save davidlivingrooms/758aa9932a455d01ac020b13e5315ea7 to your computer and use it in GitHub Desktop.
python
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?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment