Posts

Showing posts from August, 2017

Apparently lists and dictionaries are like pizza when it comes to coding...

Image
....because you can slice them!...... Ok bad joke, but seriously, you can. This lesson was incredibly useful, yet infuriating. I spent about two hours on the lesson that should've taken about an hour. I did take a quick break to eat already prepared dinner here at Dropbox which was delicious. In the lesson I learned about lists, dictionaries, and keys. Manipulating these sets of data is essentially the basis for the complicated project I had at the end of the lesson. This weeks lesson was a day in the supermarket. The most confusing part about this less were those little operators in the for loop. Code Academy does this thing where this give you less and less help the more you go through it, but still introduce new stuff that they don't go into much detail on. So in line 23, for the longest time I had stock[item] - 1. Well this is incorrect, because it is just an equation without returning a value. That would be like saying A - 1 instead of A = A - 1. It took one of ou...