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
8.7k points

1 Answer

3 votes

Answer:

You need to import randrange from the random module.

User Thomas Neuteboom
by
8.3k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.