title: Inserting string variables into print in python
body: <p>I know of two ways to format a string:</p>
  
  <ol>
  <li><code>print 'Hi {}'.format(name)</code></li>
  <li><code>print 'Hi %s' % name</code></li>
  </ol>
  
  <p>What are the relative dis/advantages of using either?</p>
  
  <p>I also know both can efficiently handle multiple parameters like </p>
  
  <pre><code>print 'Hi %s you have %d cars' % (name, num_cars)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>print 'Hi {0} and {1}'.format('Nick', 'Joe')
  </code></pre>