Created
June 11, 2017 06:14
-
-
Save venkatsgithub1/5dcf837e3e3fcfe73b75c624c3a68df8 to your computer and use it in GitHub Desktop.
Dice Roll Simulator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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