Join the right halves of sentences.
Which import
statements are correct?
-
import re
-
import re.sub
-
from re import sub
-
from re import *
-
from re.sub import *
Where does Python look for modules to import?
- in the variable
sys.path
- in the current working directory
- in the directory where the current module is
- in the
site-packages
folder - in directories in the
PYTHONPATH
variable
Which statements about packages are true?
- a package is a directory with modules
- a package must contain a file
__init__.py
- a package may contain no code
- a module may contain many packages
Which packages are installed by default?
-
os
- manipulating files and directories -
time
- accessing date and time -
csv
- read and write tables -
numpy
- number crunching -
pandas
- clever handling of tabular data