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

Convert 35 mL to cm3. 1 mL = 1 cm3
50 POINTS QUESTION!!!!! Refer to the passage. "We, considering the grave inconveniences which might come from the lack especially of ploughmen and such labourer
this is integrated math2, help plzzzz. i’m so lost idk what this is:/
11.12.13 The First Americans in Give Me Liberty by Eric Foner, pgs. 2-11 Directions: Read pgs 2-11 in your textbook and thoughtfully answer the following questi
if mountains and volcanoeswere formed as a result of plate movement how are hills and canyons formed?​
In cooking or preparing food and drink, when have you observed solubility in action?
Which statement best describes how these memes interact in the tale
Geri spent Friday, Saturday, and Sunday selling a total of 24 magazine orders for her school fundraiser. The amounts she sold, respectively, on the three days w
facts about ancient Greece​
I can not solve this problem . Help