title: What is the difference between %i and %d in Python?
body: <p>OK I was looking into number formatting and I found that you could use <strong>%d</strong> or <strong>%i</strong> to format an integer.  For example:</p>
  
  <pre><code>number = 8
  print "your number is %i." % number
  </code></pre>
  
  <p>or</p>
  
  <pre><code>number = 8
  print "your number is %d." % number
  </code></pre>
  
  <p>But what is the difference?  I mean i found something but it was total jibberish.  Anyone speak Mild-Code or English here?</p>