Py Modules (Py.Ud.10Apps) Flashcards
1
Q
in what language are builtin modules written?
A
C
2
Q
how to list all builtin modules?
A
]] dir( __builtins__ )
3
Q
how to import the builtin modules which aren’t immediately available?
A
]] import
– e.g. time
4
Q
how to find out what builtin modules are available?
A
]] sys.builtin_module_names
5
Q
what are standard libraries?
A
an unprecise collection of builtin modules written in C and other modules written in .py
6
Q
where does modules written in .py, part of the standard library reside?
A
]] sys.prefix
7
Q
how to install 3rd party libraries?
A
]] import < 3rd_party_lib >
8
Q
what is the library to use for json datafiles ?
App1
A
json
]] import json