Hashes use braces instead of brackets to let the Ruby interpreter know what is being created.
fruit = { :apple => 'fruit', :orange => 'fruit', :squash => 'vegetable' } puts fruit[:apple] fruit[:corn] = 'vegetable' puts fruit[:corn]