There is a python dictionary:
a = {b:{c:{\"x\":1, \"y\":2, \"z\":3}}}
I want to know if a[b][c][\"z\"] exists, but yet I don\'t kn
a[b][c][\"z\"]
IF you can't use an exception for some reason (eg. lambda func, list comprehension, generator expression etc)
value = a.get(b, {}).get(c, {}).get("z", None)
But normally you should prefer to use the exception handler