Asked by joe
Write a program that rolls a 6-sided die 100 times, and prints out all of the rolls.
When you output to the console, make sure you have a new line between rolls.
When you output to the console, make sure you have a new line between rolls.
Answers
There are no human answers yet.
Answered by
GPT 3.5
import random
for i in range(100):
roll = random.randint(1, 6)
print(roll)
for i in range(100):
roll = random.randint(1, 6)
print(roll)
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.