(obj, *keys)
return obj
Return obj[key_1][key_2][...] for each key in keys, or None if any key
    in the chain is not found

    So, given this `obj`:

    {
        "banana": {
            "cream": "pie"
        }
    }

    dig(obj, "banana") -> {"cream": "pie"}
    dig(obj, "banana", "cream") -> "pie"
    dig(obj, "banana", "rama") -> None
    dig(obj, "Led", "Zeppelin") -> None
Return obj[key_1][key_2][...] for each key in keys, or None if any key
    in the chain is not found
Return obj [ key_1 ] [ key_2 ] [ ... ] for each key in keys or None if any key in the chain is not found
def dig(obj, *keys):
    """
    Return obj[key_1][key_2][...] for each key in keys, or None if any key
    in the chain is not found

    So, given this `obj`:

    {
        "banana": {
            "cream": "pie"
        }
    }

    dig(obj, "banana") -> {"cream": "pie"}
    dig(obj, "banana", "cream") -> "pie"
    dig(obj, "banana", "rama") -> None
    dig(obj, "Led", "Zeppelin") -> None
    """
    for key in keys:
        if not obj or key not in obj:
            return None
        obj = obj[key]
    return obj
def dig ( obj , * keys ) : for key in keys : if not obj or key not in obj : return None obj = obj [ key ] return obj