How to loop through a list of dictionary and select specific key value python
<p>So I have the following list of dictionary:</p>

<pre><code>"Items": [{
        "Instance": 1,
        "SubInstance": 1,
        "Path": "To Sleep",
    },
    {
        "Instance": 1,
        "SubInstance": 2,
        "Path": "To Eat",
    },
    {
        "Instance": 3,
        "SubInstance": 1,
        "Path": "To Play"
    },
    {
        "Instance": 2,
        "SubInstance": 1,
        "Path": "To Work"
    }]
</code></pre>

<p>And I am trying to loop through the list and check for if Instance = 3 and SubInstance = 1 then select just the key value "To Play" and assign it to a variable path_result. User input variables to use are var_inst for Instance and var_subInst for Subinstance. Thanks.</p>