Dice Roll Coverage
Use the random module to simulate rolling a six-sided die 1000 times, and check whether every face (1 through 6) showed up at least once.
What the problem means: with 1000 rolls of a fair die, it's overwhelmingly likely every face appears at least once — this checks that your simulation covers the full range correctly, without needing to match an exact random sequence (which would be a fragile, un-testable way to grade genuine randomness).
Approach: use random.randint(1, 6) inside a loop to build a list of 1000 rolls, then check that every number from 1 to 6 appears somewhere in that list.
Input: No input.
Output: One line: True if every face 1-6 appeared at least once among the 1000 rolls, otherwise False.
(none)
True
Hint 1
random.randint(1, 6) returns a random integer between 1 and 6, inclusive on both ends.
Hint 2
all(face in rolls for face in range(1, 7)) checks that every one of the six faces appears at least once.
Hint 3
With 1000 rolls, missing a face is astronomically unlikely for a correct simulation — the expected answer is always True.
random.randint(1, 6) called 1000 times inside a list comprehension builds a realistic simulation of 1000 die rolls. Checking all(face in rolls for face in range(1, 7)) confirms every possible face turned up at least once — with 1000 trials this is true for all practical purposes, which is what makes this a reliable way to grade genuine random-module usage without depending on one exact pseudorandom sequence.