nerdexam
Juniper

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…

Python

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)
  • A
    2% (1)
  • B
    7% (3)
  • C
    2% (1)
  • D
    88% (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

#Python import#modules#packages#syntax

Community Discussion

No community discussion yet for this question.

Full JN0-224 Practice