Multi-level Dictionaries Quiz
Question 1 of 80% Complete
How do you safely access nested dictionary values to avoid KeyError?
Use chained get() methods: dict.get('key1', {}).get('key2')
Use direct access: dict['key1']'key2'
Use try-catch blocks
Use the in operator first