JN0-224 · Question #126
You want to use a Python package or module. In this scenario, which statement would accomplish this task?
The correct answer is D. Import. In Python, to use a package or module, you use the import statement. This statement allows you to load a module into your script so that you can use its functions, classes, and variables. For example, if you wanted to use the math module, you would write import math. This makes…
Question
You want to use a Python package or module. In this scenario, which statement would accomplish this task?
Options
- Areap
- Bdir
- Cinput
- DImport
How the community answered
(41 responses)- A2% (1)
- B7% (3)
- C2% (1)
- D88% (36)
Explanation
In Python, to use a package or module, you use the import statement. This statement allows you to load a module into your script so that you can use its functions, classes, and variables. For example, if you wanted to use the math module, you would write import math. This makes all the functions and constants in the math module available for use in your program.
Topics
Community Discussion
No community discussion yet for this question.