title: How to check deque length in Python
body: <p>How to check a deque's length in python?</p>
  <p>I don't see they provide deque.length in Python...</p>
  <p><a href="http://docs.python.org/tutorial/datastructures.html" rel="noreferrer">http://docs.python.org/tutorial/datastructures.html</a></p>
  <pre><code>from collections import deque
  queue = deque([&quot;Eric&quot;, &quot;John&quot;, &quot;Michael&quot;])
  </code></pre>
  <p>How to check the length of this deque?</p>
  <p>and can we initialize like</p>
  <pre><code>queue = deque([])   #is this length 0 deque?
  </code></pre>