Ruby: Hashes

shoppinglist = {"spycamera" => 34.00, "invisibleink" => 2.00, "talcumpowder" => 8.00}

We can access any value by naming its key:

shoppinglist["talcumpowder"]
=> 8.00

As you can see, this will return the value, 8.00.
rubylang