title: Get Day name from Weekday int
body: <p>I have a weekday integer (0,1,2...) and I need to get the day name ('Monday', 'Tuesday',...).</p>
  
  <p>Is there a built in Python function or way of doing this?</p>
  
  <p>Here is the function I wrote, which works but I wanted something from the built in datetime lib.</p>
  
  <pre><code>def dayNameFromWeekday(weekday):
      if weekday == 0:
          return "Monday"
      if weekday == 1:
          return "Tuesday"
      if weekday == 2:
          return "Wednesday"
      if weekday == 3:
          return "Thursday"
      if weekday == 4:
          return "Friday"
      if weekday == 5:
          return "Saturday"
      if weekday == 6:
          return "Sunday"
  </code></pre>