R3
Size: a a a
R3
M
V
R3
R3
R3
V
R3
M
V
R3
def fking_key(dicc, keys=[]):
val = dicc.get(keys[0])
if val == None:
return None
if keys == []:
return val
return fking_key(val, keys[1:]
M
R3
V
R3
V
M
def dictpath_is_exists( some_dict, *args ) :
for key in args :
if not ( key in some_dict ) :
return False
some_dict = some_dict[key]
return True
R3
V
V
def dictpath_is_exists( some_dict, *args ) :
for key in args :
if not ( key in some_dict ) :
return False
some_dict = some_dict[key]
return True