import requests # same code from problem 5 BASE_USAJOBS_URL = "https://data.usajobs.gov/api/jobs" names = ['California', 'Florida', 'Maryland', 'New York'] thelist = [] thelist.append(["State", "Job Count"]) for n in names: atts = {'CountrySubdivision': n, 'NumberOfJobs': 1} resp = requests.get(BASE_USAJOBS_URL, params = atts) jobcount = int(resp.json()['TotalJobs']) thelist.append([n, jobcount]) # Throw the boilerplate HTML into a variable: chartcode = """