title: How to get length of this Array in Python? Pyramid framework
body: <p>I am trying to get the lengths of the following Arrays in Pyramid.</p>
  
  <p><img src="https://i.stack.imgur.com/JJpOB.png" alt="enter image description here"></p>
  
  <p>When I try this below</p>
  
  <pre><code>${outbox_details.details['declined']} 
  ${outbox_details.details['accepted']}
  ${outbox_details.details['pending']}
  </code></pre>
  
  <p>I see what I think is an empty Array getting generated in the HTML:
  <img src="https://i.stack.imgur.com/3lPcw.png" alt="enter image description here"></p>
  
  <p>Full Markup for above:</p>
  
  <pre><code>&lt;li&gt;
      &lt;img src="..." alt="Denied"/&gt;${outbox_details.details['declined']} denied
  &lt;/li&gt;
  &lt;li&gt;
      &lt;img src="..." alt="Accepted"/&gt;${outbox_details.details['accepted']} accepted
  &lt;/li&gt;
  &lt;li&gt;
      &lt;img src="..." alt="Pending"/&gt;${outbox_details.details['pending']} pending
  &lt;/li&gt;
  </code></pre>
  
  <p><br/><br/>
  I've tried .length and .len, but they all error out in PyCharm:</p>
  
  <pre><code>${outbox_details.details.length.(['declined'])} 
  ${outbox_details.details.len['declined']}
  ${outbox_details.details.len(['declined'])} 
  </code></pre>
  
  <p>If you are a Python, or back-end developer, how would you get the length of the accepted, declined or pending arrays?</p>