title: GeoCode Results: Index Out of Range
body: <p>I am making a code that converts an address into lat-long coordinates. I expected the program to output something along the lines of: <code>39.962714, -83.003419</code>, but it returned an index error:</p>
  <pre><code>  File &quot;main.py&quot;, line 10, in &lt;module&gt;
      result = requests.get('http://maps.googleapis.com/maps/api/geocode/json', params=params).json()['results'][0]
  IndexError: list index out of range
  python3 exited with code 1...
  </code></pre>
  <p>I haven't tried much because I couldn't find any situations similar to mine, and I don't understand exactly why the error message is coming up, because there should be at least one value in <code>results</code> but here's my code anyway:</p>
  <pre><code>  'address': '90 W Broad St',
    'sensor': 'false',
    'region': 'Ohio'
    }
  
  result = requests.get('http://maps.googleapis.com/maps/api/geocode/json', params=params).json()['results'][0]
  
  geodata = dict()
  geodata['lat'] = result['geometry']['location']['lat']
  geodata['lng'] = result['geometry']['location']['lng']
  
  print('{lat}, {lng}'.format(**geodata))
  </code></pre>
  <p>I am very sorry if the answer is obvious, but thank you for your time reading this. :)</p>