title: How to I adjust this nested loop to store the output of different URL requests in separate databases or .csv files?
body: <p>so I'm working at a simple project but apparently I'm stuck at the first step. Basically I'm requesting the .json files from a public github repository. 7 different files which I aim to download and convert to 7 differently named databases.</p>
  <p>I tried to use this nested loop, trying to create 7 different csv files, the only <strong>problem is that it gives me 7 different named csv files with the same content</strong> (the one from the last URL).
  I think it has something to do with the way I store the data from the json output in the list &quot;data&quot;.
  How could I solve this problem?</p>
  <pre><code>import pandas as pd
  import datetime
  import re, json, requests #this is needed to import the data from the github repository
  
  naz_l_url = 'https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-andamento-nazionale-latest.json'
  naz_url = 'https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-andamento-nazionale.json'
  reg_l_url = 'https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-regioni-latest.json'
  reg_url = 'https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-regioni.json'
  prov_l_url = 'https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-province-latest.json'
  prov_url = 'https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-province.json'
  news_url = 'https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-note.json'
  
  list_of_url= [naz_l_url,naz_url, reg_l_url,reg_url,prov_url,prov_l_url,news_url]
  csv_names = ['01','02','03','04','05','06','07']
  
  for i in list_of_url:
   resp = requests.get(i)
   data = pd.read_json(resp.text, convert_dates=True)
   for x in csv_names:
    data.to_csv(f&quot;{x}_df.csv&quot;)
  </code></pre>
  <p>I want to try two different ways. 1 with the loop giving me csv files, and another with the loop giving me pd dataframes. But I need to solve the problem of the loop giving me the same output for now.</p>