Do Now: Dictionaries 01
1.Type and run the following code:
my_dictionary = {
'cat': 'a domestic feline',
'dog': 'a domestic canine',
'chair': 'furniture piece for sitting',
'car': 'automobile'
}
print(my_dictionary)
print(my_dictionary['dog'])
print(my_dictionary.get('dog'))
Write down what goes printed out. What type is my_dictionary?
2.Write a line of code that will print the definition of 'chair'.
3.Write down what happens if you use my_dictionary['kittens']
? What do you think that error means?