9. Accessing Hash Values


#1

what am i doing wrong
please help
pets = Hash.new
{
"cat_1" => "Francis" ,
"cat_2" => "Quarterpint",
"cat_3" => "Walela",
"cat_4" => "Hobo"
}
pets= Hash.new
pets["Cat_5"]="iagojgrae"

puts pets["cat_2"]


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.