we have created 3 dictionaries inside a dictionary “countries”. We then assigned these dictionaries to the values of the respective keys, 1 and 2, and 3. In the pandas’ document, The “orientation” of…