Computer Science
In Python which is the correct method to load a module math ?
- include math
- import math
- #include
- using math
Python Libraries
3 Likes
Answer
import math
Reason — The syntax for importing whole module is : import modulename
. According to the syntax, the correct method to load a module math is import math
.
Answered By
3 Likes
Related Questions
Which operator is used in Python to import all modules from packages ?
.
operator*
operator->
symbol,
operator
Which file must be part of the folder containing Python module files to make it importable Python package ?
- init.py
- __setup__.py
- __init__.py
- setup.py
Which is the correct command to load just the tempc method from a module called usable ?
- import usable, tempc
- import tempc from usable
- from usable import tempc
- import tempc
What is the extension of Python library modules ?
- .mod
- .lib
- .code
- .py