pulling stuff out of zip.
# Here is a simple way of grabbing a value: the [] method.
# It retrieves a single hash value based on a key:
zip = { 1 => "One", 2 => "Two", 3 => "Three",
4 => "Four", 5 => "Five", 6 => "Six", 7 =>
"Seven", 8 => "Eight", 9 => "Eight" }
zip[1] # => "One"
Related examples in the same category