get_city(record) where record is a dict shaped like {"name": ..., "address": {"street": ..., "city": ..., "zip": ...}}. Return the value at record["address"]["city"]. If the "address" key or the "city" key is missing, return "Unknown".get_city({'name': 'Ravi', 'address': {'city': 'Pune'}})'Pune'
Nested lookup succeeds.
get_city({'name': 'Ravi'})'Unknown'
No address key at all.
Chain `.get()` calls: `record.get("address", {}).get("city", "Unknown")`.