190k views
5 votes
Consider this entry from IDLE.

>>> random.randrange (10)
5
Which statement is true?
O You need to import randrange from the random module.
O When you first open IDLE, you can use the randrange() method.
O You need to import randrange from the math module.
O There is no randrange method. You would need to write your own.

User Lilian
by
3.9k points

1 Answer

3 votes

Answer:

You need to import randrange from the random module.

User Thomas Neuteboom
by
3.5k points