← Quiz: Modules and Libraries: all 14 questions
Quiz: Modules and Libraries · Question 14 of 14
What does this print? (code)
What does this print?
import math as m
print(m.sqrt(49) + m.pow(2, 3))
- A.15
- B.15.0
- C.7.08
- D.NameError: math
Answer & explanation
Correct answer: 15.0
The alias m stands for math. sqrt and pow both return floats: 7.0 + 8.0 = 15.0.
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 →