Question 1
Back to Exercise
The program below stops with an error. Which statement correctly describes the problem?
import maths
print(maths.sqrt(25))
- A AttributeError: sqrt
- B ModuleNotFoundError: there is no module called maths; the standard module is math Correct
- C It prints 5.0
- D SyntaxError
Correct Answer: Option B
Module names must match the file name exactly.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!