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

An unknown compound (152 mg) was dissolved in water to make 75.0 mL of solution. The solution did not conduct electricity and had an osmotic pressure of 0.328 a
After simplifying, how many terms does the expression 4y - 6 + y2 - 9 contain? 1 term 2 terms 3 terms 4 terms
Which quotation from "The Gettysburg Address" most effectively develops the theme that it is important to honor those who have fallen in defense of our country’
What is the term for a business owned by one person?
WILL AWARD BRAINLIEST What is importing? A. When you push a surface into an object part of the way to create a hollow area B. When you save a file as a differen
The purchasing power of the dollar would fall by 20% if the price index rises by:A. 44 percentB. 12.5 percentC. 25 percentD. 10 percent
dr potter provides vaccinations against polio and measles. each polio vaccine consists of 4 doses and each measles.vaccination consist of 2 doses. last year pot
You are told that the sampled signal sent by a source is 2 seconds long and has 8000 samples per second. The signal is x[n]______.
it the cat funny? Yes! Or No?
The perimeter, P, of a rectangle is found using the formula P = 2l + 2w, where l is the length of the rectangle and w is the width of the rectangle. Solve the f