title: Python (if, elif, else) working with timestamp
body: <p>I am taking a beginning Python programming class and I am having trouble getting the code below to work correctly.  The assignment asks: write a Python code that uses the “strftime()” function to get the today’s weekday value and then use an “if..elif..else” statement to display the associated message.  So, with today being Friday (w == 5) for me, it should print "Prevention is better than cure."  Instead, it keeps printing the else statement "Stupid is as stupid does."  Advice?</p>
  
  <pre><code>import datetime
  
  t = datetime.date.today()
  w = t.strftime("%w"); # day of week
  
  if (w == 0): print("The devil looks after his own.");
  elif (w == 1): print("Everything comes to him who waits.");
  elif (w == 2): print("Give credit where credit is due.");
  elif (w == 3): print("If you pay peanuts, you get monkeys.");
  elif (w == 4): print("Money makes the world go round.");
  elif (w == 5): print("Prevention is better than cure.");
  else: print("Stupid is as stupid does.");
  </code></pre>