The range randint draws from
Predict the output · Medium · §12.2 import
This code draws a random survey score with random.randint() 200 times and collects the different scores that come up in kinds. Assume that in 200 draws, every possible score comes up at least once. Predict the output.
Code
import random
kinds = []
for i in range(200):
score = random.randint(1, 5)
if score not in kinds:
kinds.append(score)
print(len(kinds), min(kinds), max(kinds))Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.