title: For what do you need zip?
body: <p>Lastly, I saw this code. I don't understand for what do you need the zip (line 4).</p>
  <p>Here is the code which compares the nesting structure</p>
  <pre><code>def same_structure_as(original,other):
      if type(original) != type(other) or len(original) != len(other):
          return False
      for org_val, other_val in zip(original, other):
              if type(org_val) != type(other_val):
                  return False
              if type(org_val) is list and type(other_val) is list:
                  if not same_structure_as(org_val, other_val):
                      return False
      return True
  </code></pre>