CompTIA
XK0-006 · Question #113
Which of the following allows modules to be used in Python scripts?
The correct answer is B. import. This statement makes functions, classes, and variables from a module available for use within a Python script, enabling modular and reusable code.
Automation and Scripting
Question
Which of the following allows modules to be used in Python scripts?
Options
- Ainit
- Bimport
- Cname
- Ddet
How the community answered
(35 responses)- A6% (2)
- B89% (31)
- C3% (1)
- D3% (1)
Explanation
This statement makes functions, classes, and variables from a module available for use within a Python script, enabling modular and reusable code.
Topics
#Python#import statement#modules#scripting
Community Discussion
No community discussion yet for this question.