title: Python Invalid format string
body: <p>I am trying to print the date in the following format using strftime:
  06-03-2007 05:40PM</p>
  
  <p>I have written the following code:</p>
  
  <pre><code>import time
  print time.strftime("%m-%d-%Y %T:%M%p")
  </code></pre>
  
  <p>But it gives an error "Invalid format string". Why is that?</p>