dict = {
"a": "1",
"b": "2",
"dict2": {
"c": "3",
"d": "4",
}
}
a = {
"a": "1",
"b": "2",
"dict2": {
"c": "3",
"d": "4",
}
}
def find_dict(d):
for x, y in d.items():
if isinstance(y, dict):
return x
return None
print(find_dict(a))