Read the code in each section, then write exactly what the code prints out.
Each problem stands alone. Variables from previous problems do not exist.
Example:
x = 5
y = 6
print(x+y)
# => 11
person = {
"first_name" => "ada",
"last_name" => "lovelace",
"nickname" => "adie"
}
puts person.length
puts person["last_name"]
animals = {
"dog" => "canine",
"cat" => "feline"
}
animals["cat"] = "feline"
puts animals["dog"]
puts animals["donkey"]
chuck_norris = {
"punch" => 99,
"kick" => 98,
"stops_bullets_with_hands" => false
}
chuck_norris["kick"] = 25
puts chuck_norris["kick"]
menu = {}
menu["ramen"] = "garlic tonkotsu"
menu["burger"] = "bleu sun"
menu["tea"] = "green"
puts menu.length
puts menu["burger"]
puts menu["tater_tots"]
When you are complete with all of these problems, you can check your answers against the answer key.