Extracting subdictionaries from nested dictionary
I have a Python nested dictionary as the following:

    dic = {'dist_river': {'high': {'wind_speed': {'1': {'population': {'high': {'school': {'high': 'T', 'medium': 'T', 'low': 'F'}}, 'medium': {'land_cover': {'Mix_garden': {'income_source': {'Plantation': 'T', 'Agriculture': 'F'}}}}}}}},'low': 'F'}}

How can I get subdictionaries from the nested dictionary ?.  For example, subdictionaries from dic:

    dic1 = {'dist_river': {'high': {'wind_speed': {'1': {'population': {'high': {'school': {'high': 'T', 'medium': 'T', 'low': 'F'}}}}}}}}
    dic2 = {'dist_river': {'high': {'wind_speed': {'1': {'population': {'medium': {'land_cover': {'Mix_garden': {'income_source': {'Plantation': 'T', 'Agriculture': 'F'}}}}}}}}}}
    dic3 = {'dist_river': {'low': 'F'}}

Thank you for your help

Extracting subdictionaries from nested dictionary
===

I have a Python nested dictionary as the following:

    dic = {'dist_river': {'high': {'wind_speed': {'1': {'population': {'high': {'school': {'high': 'T', 'medium': 'T', 'low': 'F'}}, 'medium': {'land_cover': {'Mix_garden': {'income_source': {'Plantation': 'T', 'Agriculture': 'F'}}}}}}}},'low': 'F'}}

How can I get subdictionaries from the nested dictionary ?.  For example, subdictionaries from dic:

    dic1 = {'dist_river': {'high': {'wind_speed': {'1': {'population': {'high': {'school': {'high': 'T', 'medium': 'T', 'low': 'F'}}}}}}}}
    dic2 = {'dist_river': {'high': {'wind_speed': {'1': {'population': {'medium': {'land_cover': {'Mix_garden': {'income_source': {'Plantation': 'T', 'Agriculture': 'F'}}}}}}}}}}
    dic3 = {'dist_river': {'low': 'F'}}

Thank you for your help
