answer this question and show full stepSolutionHere I am giv


answer this question and show full step

Solution

Here I am giving you the code in python language

import random

min=1

max=6

# as dice consists of 6 numbers we have taken min and max to represent the boundary

# here we have taken random function to generate new number every time we threw dice

roll=\"yes\"

#this is to check whether you want to roll again or not

while roll=\"yes\"

   print \"rolling dices\"

print \" values after rolling\"

print \" random.randint (min,max)

   print \" random.randint (min,max)

roll=raw_input (\"Do you want to roll the dice again:\")

Note: all the content followed by # are comments

# please strictly follow the indentation

# if you want more number of dices then simply add another print statement or else you can give for loop

  

 answer this question and show full stepSolutionHere I am giving you the code in python language import random min=1 max=6 # as dice consists of 6 numbers we ha

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site