Created
May 18, 2020 17:27
-
-
Save Deep18-03/01e4549adb4f38087faa3f6dae0f2d3f to your computer and use it in GitHub Desktop.
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 | |
while True: | |
print("This is a dice rolling program") | |
print("Press Enter to roll") | |
input() | |
Number=random.randint(1,6) | |
if Number==1: | |
print("[*************************]") | |
print(" ") | |
print(" o ") | |
print(" ") | |
print("[*************************]\n") | |
print(f"The dice number is: {Number}") | |
if Number==2: | |
print("[*************************]") | |
print(" ") | |
print(" o o ") | |
print(" ") | |
print("[*************************]") | |
print(f"The dice number is: {Number}") | |
if Number==3: | |
print("[*************************]") | |
print(" ") | |
print(" o o o ") | |
print(" ") | |
print("[*************************]") | |
print(f"The dice number is: {Number}") | |
if Number==4: | |
print("[*************************]") | |
print(" ") | |
print(" o o ") | |
print(" o o ") | |
print(" ") | |
print("[*************************]") | |
print(f"The dice number is: {Number}") | |
if Number==5: | |
print("[*************************]") | |
print(" ") | |
print(" o o ") | |
print(" o ") | |
print(" o o ") | |
print("[*************************]") | |
print(f"The dice number is: {Number}") | |
if Number==6: | |
print("[*************************]") | |
print(" ") | |
print(" o o ") | |
print(" o o ") | |
print(" o o ") | |
print(" ") | |
print("[*************************]") | |
print(f"The dice number is: {Number}") | |
option=input("Do you want to continue Y or N\n") | |
if option=="n" or option=="N": | |
break | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment