Look for value in array python/flask
<p>I am working with Python and Flask at the moment, and I wanting to do a check in my template for if a value is contained in an array that is passed to template the code that build the array looks like this, </p>

<pre><code>statuses = {}
statuses['personal_status'] = ['Pending', 'Cancelled']
statuses['planner_status'] = ['Pending', 'RP_Approved', 'RP_Declined', 'Cancelled', 'Approved']
statuses['approver_status'] = ['Approved', 'Mgr_Declined']
</code></pre>

<p>In my template I am wanting search <code>statuses.personal_status</code> to see if a value is present in the array and if so show some other DOM elements, is this possible?</p>