Collections

Exercise: Read and write dictionary values

Goal

Please add a new value, the key of which is your name, and the value of which is your age. Do this using the Add method.

Next, add another value to the dictionary using the index notation. This time, use a different name and a different age.

Lastly, read the first item you added to the dictionary, and write it to the console using Console.WriteLine`.

Page 14 of 31