1.2 DESCRIBE parsing of common data formats to Python data structures Flashcards

1
Q

A native Python library is included to import and parse XML data formats

A

xmltodict

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

Utilizes Python ordered dictionaries where the order of parent/child values matters

A

xmltodict

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

A method to work with native XML data formats in Python

A

import xmltodict

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

Python includes this native library to import and parse JSON data formats

A

json

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

A method to work with native JSON data formats in Python

A

import json

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

Import native JSON and convert the data to a Python dictionary

A

json.load()

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

Import native JSON data from a string to a Python dictionary

A

json.loads()

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

Write JSON data from Python objects to a file

A

json.dump()

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

Convert JSON dictionary data to a serialized string for parsing in Python

A

json.dumps()

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

A non-native Python module must be installed and is required to import and parse YAML data in Python

A

pyyaml

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

A method to install the non-native library required to work with YAML data formats in Python

A

pip install pyyaml

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

A method to work with native YAML data formats in Python

A

import yaml

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

Converts YAML to Python objects

A

yaml.load()

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

Converts Python objects to YAML

A

yaml.dump()

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