title: What is the difference between len() and sys.getsizeof() methods in python?
body: <p>When I ran the below code I got 3 and 36 as the answers respectively.</p>
  
  <pre><code>x ="abd"
  print len(x)
  print sys.getsizeof(x)
  </code></pre>
  
  <p>Can someone explain to me what's the difference between them ?</p>