brostace brostace
  • 12-01-2021
  • Computers and Technology
contestada

Use the function random.randint to write a program that rolls a 6-sided die 100 times, and prints out all of the rolls.

Print each roll on its own line.

Respuesta :

Cytokine
Cytokine Cytokine
  • 12-01-2021

import random

for x in range(100):

   print(random.randint(1,6))

I wrote my code in python 3.8. I hope this helps.

Answer Link

Otras preguntas

How many chromosomes does each new cell contain after mitosis if the original cell had 52 original cell chromosomes
A grade has 81 girls and 72 boys. The grade is spilt into groups that have the same ratio of boys to girls as the whole grade. How many girls are in a group tha
What are 3 physical properties of aluminum foil
solve using substitution, y=2x+5   y=6x+1
How do plant populations in a community change over time?
what are three physical properties of aluminum foil
How many chromosomes does each new cell contain after mitosis if the original cell had 52 original cell chromosomes
6 divded by 2/3 = what
How many chromosomes does each new cell contain after mitosis if the original cell had 52 original cell chromosomes
according to hamilton what are implied powers?A.powers not expressly forbidden in the constitutionB.powers that were forbidden in the constitutionC.powers that