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.

Answers

Answer 1

import random

for x in range(100):

   print(random.randint(1,6))

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


Related Questions

at least 20 characters

Answers

Answer:

eh?

Explanation:

eh?

Other Questions
What is a major effect of scarcity in economic behavior? A.It decreases the amount of profit companies can make. B.It provides incentives for creating a command economy. C.It prevents people from getting what they want D.It increases the opportunity cost of economic decisions. 0.545Convert to fraction 6c 7 + d + 4 6d combine like terms An investor purchased 100 shares of stock in a company for $1,500. One year later, the investor sold all the shares for $1,750. What is the investor's rate of return? 50 POINTS PLEASE HELP ASAP IF CORRECT WILL GIVE BRAINLYIST chicken tenders or chicken nuggets PLZ HELP ASAPWrite an informative essay of at least 500 words on one of the topics specified in the "Directions" section: either a topic concerning sea life or a social condition or historical event of the early 1800s.All of your sources should be correctly cited, using the MLA format for in-text citations and providing a works-cited list. View the MLA Style Guide. Whats 36 x 99? I dont know, do you? I had just finished making a complicated piece of equipment that was to be used for a show opening in Philadelphia called "Fiorello." When the machine arrived they had trouble wiring it, so instead of going off to college that morning for an orientation, I spent several days at the theater fixing my light/sound equipment. The show received poor reviews, except for the mention by one reviewer of the "special effects," which, he wrote, were "outstanding.""On Becoming an Inventor,"J. Dean KamenRead this passage and identify the opinion Kamen expresses. How does he support his opinion What conclusion does the author reach about Douglass and Lincoln at the end of the selection?O They were more alike than they were different.O They often disagreed and then came to a compromise.O They agreed with each other on every issue.O They were not as friendly as appearances suggested. Should genetic genealogy be used to solve crimes ? Yes or no and why? PLS HELP ME ON THIS ASAP!!!! I'll give u branley: A recipe calls for 10 cups of flour to make 60 pancakes. How many pancakes can be made with a single cup of flour? Which of the following is correctly written in the subjunctive mood?1. Create a new website for the band and we would get more gigs.2. If I were an adult, I would have bought a car.3. If I were you, I would study before going to the skate park.4. The newly purchased backpacks were being left in the hallway. Explain the difference between transverse and longitudinal waves. I need help pleasee write 2x + y= 9 in the form of y=mx + b PLS HELP I HAVE TO TURN THIS IN IN FIVE MIIN!!Tickets to a play cost $4 in advance and $5 at the door. The theater club president wants to raise at least $400 from the ticket sales. If the club sells 40 tickets in advance, what is the least number of tickets the club needs to sell at the door to reach the presidents goal? Who could become a magistrate Put these in descending order 0.68,0.9,0.81 and 0.86