title: Make List and Dictionaries dynamically in Python. I am trying to create the array in Python
body: <p>I am new in Python and getting the problem in creating the dynamically list and dictionaries.</p>
  
  <p>I want the result like:</p>
  
  <pre><code>{
  'page1':
      [{'email':
          [{'emailAddress':'abc@gmail.com'}],[{'emailAddress1':'abc@gmail.com1'}],...
      }],[{'url':
          [{'url':'abc.com','cordinates','10,10,100,45'}],[{'url':'abc.com','cordinates','10,10,100,45'}]...
      }]
  }
  {
  'page1':
      [{'email':
          [{'emailAddress':'abc@gmail.com'}],[{'emailAddress1':'abc@gmail.com1'}],...
      }],[{'url':
          [{'url':'abc.com','cordinates','10,10,100,45'}],[{'url':'abc.com','cordinates','10,10,100,45'}]...
      }]
  }
  {
  'page1':
      [{'email':
          [{'emailAddress':'abc@gmail.com'}],[{'emailAddress1':'abc@gmail.com1'}],...
      }],[{'url':
          [{'url':'abc.com','cordinates','10,10,100,45'}],[{'url':'abc.com','cordinates','10,10,100,45'}]...
      }]
  }.....
  </code></pre>
  
  <p>I cannot give you the original data for review but I am going to create this type of the data using the code below:</p>
  
  <pre><code>from pprint import pprint
  dict1 = {}
  dict2 = {}
  dict3 = {}
  
  newObj = {'name'}
  finalVar = []
  finalVars = []
  newVal = {}
  for i in range(10):
      temp = {'page'+str(i)}
  
      for k in range(10):
          newtemp = {'page'+str(i):{'email':[{
              'emailId':str(i),
              'test':str(k)
          }]}}
          finalVar.append(newtemp)
  
  for i in range(10):
      temp = {'page'+str(i)}
      for k in range(10):
          newtemp = {'page'+str(i):{'email':[{
              'url':str(i),
              'testing':str(k)
          }]}}
          finalVars.append(newtemp)
  
  pprint(finalVars)
  </code></pre>
  
  <p>I am new in Python so, even I don't know that I am creating the valid list and array dictionary. So, please sorry if there is any thing wrong.</p>