Which of these statements will return the number of keys in dict?

dict.Keys;dict.ContainsKey ();dict.Count;

Fantastic! The Count property stores the count of key-value pairs. Keys returns a collection of keys and ContainsKey () checks for the presence of a key.

Yikes! The Count property stores the count of key-value pairs. Keys returns a collection of keys and ContainsKey () checks for the presence of a key.