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

Can someone help me with A and F? I AM REALLY STUCK
a topic sentence is?
What are some non examples of a chemical reaction?
If m∠ABC = 72°, what is m∠DAB? A) 72° B) 108° C) 144° D) 216°
How do you write seven hundred twelve thousandths in standard and expanded form
the brochure advertises a holiday costing £380. there is a discount of 12% if the holiday is booked by the end of the month. how much will the holiday cost afte
What were some important effects of the reformation
having a positive attitude will prevent you from making mistakes. please select the best answer from the choices provided t f
why is it important for a scientist to be open minded and skeptical
which date is celebrated every year in texas to commemorate the battle of puebla? a. fourth of july c. fifth of may b. thirteenth of august d. first of june