Oops, try again. There is an error with your code


#1



can you check my code its suppose to return 'nil' but it gives an error report instead


creatures = { "weasels" => 0,
  "puppies" => 6,
  "platypuses" => 3,
  "canaries" => 1,
  "Heffalumps" => 7,
  "Tiggers" => 1
}

creatures [dogs]

Replace this line with your code.

`


#2

Hi the error is from that line

creatures [dogs]

if you want to access to a key you should put the " " around dogs