title: In Python i need a day_name function
body: <p>A question I can't work out, is how to write a function <code>day_name</code> that converts an integer 0-6 into Sunday to Monday, 0 being Sunday.</p>
  
  <p>I found this helpful but the year and month confuse me = <a href="https://stackoverflow.com/questions/9847213/which-day-of-week-given-a-date-python">which day of week given a date python</a></p>