-
How different did your workflow feel this week, considering we asked you to follow the Pomodoro technique?
-
Regarding the work you did around setting intentions in Step 1 of the Pomodoro technique - how did that go? Were you surprised by anything (did you find yourself way more focused than you realized, more distracted that you thought you'd be, estimating times accurately or totally off, etc)?
-
What is a Hash, and how is it different from an Array?
-
In the space below, create a Hash stored to a variable named
pet_store
. This hash should hold an inventory of items and the number of that item that you might find at a pet store. -
Given the following
states = {"CO" => "Colorado", "IA" => "Iowa", "OK" => "Oklahoma"}
, how would you access the value"Iowa"
? -
With the same hash above, how would we get all the keys? How about all the values?
-
What is another example of when we might use a hash? In your example, why is a hash better than an array?
-
What questions do you still have about hashes?