title: For loop running only once after my while loop
body: <p>I am just a beginner in python and stuck in this code.
  My while loop is executing perfectly but for loop is running only once.
  Can someone please help?
  Following is my code:</p>
  <pre><code>import os
  import json
  import csv
  import pandas as pd
  os.chdir(&quot;C:/Users/lchavan/Test 4&quot;)
  df= &quot;C:/Users/lchavan/Test 4&quot;
  dir_list = os.listdir(df)
  for filename in os.listdir(df):
      with open(filename) as json_file:
          data = json.load(json_file)
          print(filename)
      i = 0
      while i &gt;= 0:
          x = data[0]['created']
          if i &lt; len(x):
              y = x[i]
              for k,v in y.items():
                  if k == 'geomenter code hereetry':
                      z = y['geometry']['coordinates']
                      print (z)
          i+=1
          pass 
  </code></pre>