title: Diagonal Grid Traverse in Python
body: <p><strong>Edited for clarity</strong></p>
  
  <p>I've searched everywhere for this but havent found anything. I would like to traverse a 2D list of strings and display the slices like they do here <strong><a href="https://stackoverflow.com/questions/2862802/traverse-2d-array-matrix-diagonally">Traverse 2D Array (Matrix) Diagonally</a></strong> but in python. </p>
  
  <pre><code>lines = ['xmfycxvc',
           'caubmekv',
           'awactivb',
           'paphzkcn',
           'sbsaakjy',
           'tsewlhvk']
  diagonals = []
  i = 0
  while i &lt; len(lines):
     j = 0
     diagonal = ''
     while j &lt; len(lines[0]):
        diagonal += lines[j][j]
        i += 1
  diagonals.append(diagonal)
  print(diagonals)
  </code></pre>
  
  <p>I know my indexes are wrong but i've tried everything and still cant make it like the link. the closest I've come is to have every diagonal but the would also wrap around the matrix like a sphere like this <code>['xaahah','muczkv','fbtkjk','cevnss','xkbpbs','vvaasw','xxwpal']</code> but I dont want that.</p>
  
  <p>I want to traverse diagonally through the matrix of strings and print the diagonals e.g. <code>['x','cm','aaf','pwuy','saabc','tbpcmx','sshtev','eazikc','wakvv','lkcb','hjn','vy','k']</code> and their counter parts going from top-left -> botom-right.</p>