Skip to content

Instantly share code, notes, and snippets.

@venkatsgithub1
Created June 11, 2017 06:14
Show Gist options
  • Save venkatsgithub1/5dcf837e3e3fcfe73b75c624c3a68df8 to your computer and use it in GitHub Desktop.
Save venkatsgithub1/5dcf837e3e3fcfe73b75c624c3a68df8 to your computer and use it in GitHub Desktop.
Dice Roll Simulator
import random
roll_low = 1
roll_high = 6
roll_again = 'Yes'
while roll_again.lower() == 'yes' or roll_again.lower() == 'y':
print("Dice Simulation started...")
print("Result of roll", random.randint(roll_low, roll_high), random.randint(roll_low, roll_high))
print('Do you want to roll again: ')
print('Valid inputs: Yes|Y|No|N')
roll_again = input()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment