Chapter 5: Problem 24
What does the following statement do? x = random.randint(1, 100)
Short Answer
Expert verified
Answer: The statement "x = random.randint(1, 100)" assigns a random integer between 1 and 100 (inclusive) to the variable "x" using the randint() function from the random module in Python.