title: python Dictionary key error
body: <p>Unable to retrieve value for a key which exists in the dictionary.</p>
  
  <p>Check the images ,I am not sure what I am doing wrong </p>
  
  <p><a href="http://i.stack.imgur.com/F8BZX.jpg" rel="nofollow">screenshot of  dictionary key and value image</a></p>
  
  <p><a href="http://i.stack.imgur.com/CfsCv.png" rel="nofollow">screenshot of error image</a></p>
  
  <pre><code>frontend_ips = {};
  frontend_ips['0'] = "localhost"
  frontend_ips['1'] = "localhost"
  frontend_ips['2'] = "localhost"
  
  
  final_resp = frontend_ips['resp'] 
  </code></pre>
  
  <p>throws error where resp value is 1</p>