Practice Loading Datafiles
Last modified
Go over the notes from last class. Note, to run the code for the record-jar parser you will need to download the source file that is linked and save it to your current working directory.
Self Study
- Write a
yaml2json
program in Python that reads an input file inyaml
format and writes out a file injson
format. - Write a
rjar2yaml
program in Python that reads input inrecord-jar
format and converts the information toyaml
format on standard output. - The
yaml
file produced byrjar2yaml
will probably not be identical to theyaml
file we wrote by hand to describe the same data. Both are validyaml
files, why are they different?