Accesses the value associated with a given key.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
The key whose value you want to retrieve.
The returned value is
key does not exist in the dictionary.
The listing below creates a new dictionary. It prints the value of a key found in the dictionary (
"Coral") and a key not found in the dictionary (