← Quiz: Modules and Libraries: all 14 questions
Quiz: Modules and Libraries · Question 1 of 14
What does from math import sqrt let you write?
What does from math import sqrt let you write?
- A.math.sqrt(9) only
- B.sqrt(9)
- C.import.sqrt(9)
- D.math->sqrt(9)
Answer & explanation
Correct answer: sqrt(9)
It imports the name sqrt directly, so you can call sqrt(9).
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 →