Dictionary Exercises

Due Thu, Jun 08, 2017 by midnight

Complete the below in a pair programming style, with reflections, one PR per group.


Note: There’s a line in sales.csv that has bad price data in it (a " and a ,). You’ll need to manually clean this when you find it.

Tips:

  • Pay attention to variable names, especially if you copy/paste code!
  • Pay attention to data types! If you need to convert a value so you can for instance do math with it, do it as early as possible. Then convert it back to a string when you need to print it.
  • Look back at the chapter for inspiration!
Elliott Hauser is a PhD Student in information science at UNC Chapel Hill. He's hacking education as one of the cofounders of Trinket.io. Find Elliott Hauser on Twitter, Github, and on the web.