How Compare and fetch the data from two dictionary items in Python

I want to fetch the data by comparing two dict items in python:


rawdata = {


subdata = {

As one can see the raw data has the subdata values but not the complete information. I want to compare dict1 with dict2 to get the complete details and print the output to another dictionary like:


By using prettytable, I want to print the information fetched from the final dictionary in tabular format. Could someone help me to solve this.

Read more here:

Content Attribution

This content was originally published by Karthik at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: