title: KeyError: 2 When using large values
body: <p>So I had to write a program to sort the SAMPLE ID NO's of plants according to their heights into a list (ascending order of heights), I made a code and it works only for small values. When I put large values, it shows:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Python34/plant_hieght_id.py", line 15, in &lt;module&gt;
    del d[int(w[0])]
  KeyError: 2
  </code></pre>
  
  <p>My code can be found at: <a href="http://pastebin.com/embed_js.php?i=TXQ94tUy" rel="nofollow">http://pastebin.com/embed_js.php?i=TXQ94tUy</a></p>