In python, i have two dictionaries as follows :-
tmp_result = { foo : {
"package_file": test_file,
"number_of_files": total_files,
"less" : changelist,
"test" : branch,
}
}
meta_data = {
"bar" : "hello test"
"hello" : "btent"
}
I want to insert meta_data dictionary into tmp_result dictionary as follows :-
tmp_result = { foo : {
"package_file": test_file,
"number": total_file,
"less" : changelist,
"test" : branch,
"bar" : "hello test"
"hello" : "btent"
}
}
I have this snippet :-
result = tmp_result[foo].update(meta_data)
print(result)
Outtpt is getting :- None
1