Exercise Set 17

Exercise 1 of 9

Initialize an empty dictionary called students.

Your code

Exercise 2 of 9

Initialize an empty dictionary called word_counts.

Your code

Exercise 3 of 9

Initialize a dictionary called info with the key-value pairs ("name", "Jordan"), ("age", 16), and ("height", 54).

Your code

Exercise 4 of 9

Update a dictionary called info so that "name" now has a value of "Sam".

Your code

Exercise 5 of 9

Update a dictionary called info so that "age" now has a value of 23.

Your code

Exercise 6 of 9

Add the key "year" to a dictionary called info with the value 1998.

Your code

Exercise 7 of 9

Write a condition to check if a dictionary called info contains the key "year".

Your code

Exercise 8 of 9

Write a condition to check if a dictionary called info contains the key "location".

Your code

Exercise 9 of 9

Delete the key "age" from a dictionary called info.

Your code