title: Indentation in nested list
body: <p>Can anybody please explain how the value of level is working for indenting the list items.  </p>
  
  <p>I have the code written. But is it that the value of level is getting incremented each time fn() is being called recursively? How does the value of level become 0 when it comes back to the item '8' in the outer list?</p>
  
  <pre><code>m=[1, 2, 3, [4, 5, [6, 7]], 8]
  def fn(item,level):
      for each_item in item:
          if isinstance(each_item,list):
              fn(each_item,level+1)
          else:
              for tabspace in range(level):
                  print("\t",end='')
              print(each_item)
  </code></pre>
  
  <p>The output of the code is:</p>
  
  <pre><code>1
  2
  3
      4
      5
          6
          7
  8
  </code></pre>