code: def prev_weekday(weekday):
      
      ix = WEEKDAYS.index(weekday)
      if ix == 0:
          return WEEKDAYS[len(WEEKDAYS)-1]
      return WEEKDAYS[ix-1]
docs: Returns the name of the weekday before the given weekday name.