179k views
2 votes
Which of the following statements imports a module into the global namespace? Select one: a. from temperature import * b. import temperature c. import temperature as global d. import temperature as temp

1 Answer

2 votes

Answer:

The correct answer B) from temperature import *

We use from statement to import the module into the current namespace.

Step-by-step explanation:

Incorrect answers:.

C)import temperature -> import statement is used to execute a python file as a module into another python source file.

A)import temperature as t, D)import temperature as temp -> These are not valid statements in python.

User Gustav
by
6.9k points