title: How to get a JSON result into a Python variable?
body: <p>I would like to get the temperature via Yahoo! temperature API into a Python variable.</p>
  
  <p>This is my code:</p>
  
  <pre><code>import urllib2, urllib, json
  baseurl = "https://query.yahooapis.com/v1/public/yql?"
  yql_query = "select item.condition from weather.forecast where woeid = 35252 and u='c'"
  yql_url = baseurl + urllib.urlencode({'q':yql_query}) + "&amp;format=json"
  result = urllib2.urlopen(yql_url).read()
  data = json.loads(result)
  print data['query']['results']
  </code></pre>
  
  <p>Those are the results:</p>
  
  <pre><code>{u'channel': {u'item': {u'condition': {u'date': u'Sun, 17 Jan 2016 3:50 am CET', u'text': u'Light Snow', u'code': u'14', u'temp': u'+6'}}}}
  </code></pre>
  
  <p>The piece of information I need is the <code>+6</code> from <code>u'temp': u'+6'</code>.</p>
  
  <p>How can I reference it into a variable?</p>