def format_response(coviddata):
country = coviddata['country']
cases = coviddata['cases']
todayCases=coviddata['todayCases']
deaths=coviddata['deaths']
todayDeaths=coviddata['todayDeaths']
recovered=coviddata['recovered']
active=coviddata['active']
critical=coviddata['critical']
casesPerOneMillion=coviddata['casesPerOneMillion']
deathsPerOneMillion=coviddata['deathsPerOneMillion']
totalTests=coviddata['totalTests']
testsPerOneMillion=coviddata['testsPerOneMillion']
final_str = "country: {} \n,cases: {} \n,todayCases: {} \n, deaths :{} \n, todayDeaths:{}\n ,recovered :{} \n, active:{} \n, critical : {} \n, casesPerOneMillion : {} \n ,deathsPerOneMillion: {} \n ,totalTests :{} \n ,testsPerOneMillion:{} ".format(country,cases,todayCases,deaths,todayDeaths,recovered,active,critical,casesPerOneMillion,deathsPerOneMillion,totalTests,testsPerOneMillion)
return final_str