title: How to find dimension of a nested tuple?
body: <p>I have a tuple that looks like this</p>
  
  <pre><code>  array=(1,2,3,4)
    lenM = numpy.shape(array)
    print lenM
    (4,)
  
    if not lenM[1]:
         "Code"
  </code></pre>
  
  <p>Now how do I automate the my code to find if the tuple is one dimensional or two dimensional?</p>