Existing code
`import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('https://api.carbonintensity.org.uk/intensity', params={}, headers = headers)
print r.json()
`
The copied phone snippet from the docs did not work on python3.10, adding the brackets around r.json() got it working fine.
`import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('https://api.carbonintensity.org.uk/intensity', params={}, headers = headers)
print(r.json())
`