← Quiz: Modules and Libraries: all 14 questions
Quiz: Modules and Libraries · Question 5 of 14
Why should you NOT name your file random.py?
Why should you NOT name your file random.py?
- A.Python forbids it
- B.It hides the built-in random module when you import random
- C.It deletes the random module
- D.Files cannot have lowercase names
Answer & explanation
Correct answer: It hides the built-in random module when you import random
import random would load your file instead of the standard library module.
Can you get the rest right without peeking?
Take the timed Quiz: Modules and Libraries quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →