Computer Science
Which command(s) modifies the current namespace with the imported object name ?
- import <module>
- import <module1>, <module2>
- from <module> import <object>
- from <module> import *
Python Libraries
1 Like
Answer
from <module> import <object>
from <module> import *
Reason —
from <module> import <object>
— This syntax is used to import a specific object from a module into the current namespace.from <module> import *
— This syntax is used to import all objects from the module into the current namespace.
Answered By
2 Likes
Related Questions
An independent triple quoted string given inside a module, containing documentation related information is a ……………
- Documentation string
- docstring
- dstring
- stringdoc
The help <module> statement displays …………… from a module.
- constants
- functions
- classes
- docstrings
Which command(s) creates a separate namespace for each of the imported module ?
- import <module>
- import <module1>, <module2>
- from <module> import <object>
- from <module> import *
Which of the following random module functions generates a floating point number ?
- random()
- randint()
- uniform()
- all of these