#Program to roll the dice
while True:
import random
print('this is a program to calculate a dice')
print('press enter ')
input()
n=random.randint(1,6)
if n==1:
print('[====================]')
print('[ ]')
print('[ o ]')
print('[ ]')
print('[====================]')
if(n==2):
print('[====================]')
print('[ ]')
print('[ o 2 o ]')
print('[ ]')
print('[====================]')
if(n==3):
print('[====================]')
print('[ o o ]')
print('[ o ]')
print('[ 3 ]')
print('[====================]')
if(n==4):
print('[====================]')
print('[ o o ]')
print('[ 4 ]')
print('[ o o ]')
print('[====================]')
if(n==5):
print('[====================]')
print('[ o o ]')
print('[ o ]')
print('[ o 5 o ]')
print('[====================]')
if(n==6):
print('[====================]')
print('[ o o ]')
print('[ o 6 o ]')
print('[ o o ]')
print('[====================]')
Thanks a lot sir
ReplyDelete