Py Modules (Py.Ud.10Apps) Flashcards

1
Q

in what language are builtin modules written?

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how to list all builtin modules?

A

]] dir( __builtins__ )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how to import the builtin modules which aren’t immediately available?

A

]] import

– e.g. time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how to find out what builtin modules are available?

A

]] sys.builtin_module_names

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are standard libraries?

A

an unprecise collection of builtin modules written in C and other modules written in .py

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

where does modules written in .py, part of the standard library reside?

A

]] sys.prefix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how to install 3rd party libraries?

A

]] import < 3rd_party_lib >

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is the library to use for json datafiles ?

App1

A

json

]] import json

How well did you know this?
1
Not at all
2
3
4
5
Perfectly