Fill: From Import
Fill in the Blank Easy
Question
Fill in the blank to import sqrt from the math module.
Code
___ math import sqrt
Hint
The keyword that precedes the module name in a from-import is...
Explanation
from math import sqrt imports only the sqrt function from the math module, so you can call sqrt(4) directly without the math. prefix. The from keyword precedes the module name.
Related Resources
Related Lessons
- Modules
from...import.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.