code: def first_sunday(self, year, month):
          
          date = datetime(year, month, 1, 0)
          days_until_sunday = 6 - date.weekday()
  
          return date + timedelta(days=days_until_sunday)
docs: Get the first sunday of a month.