code: def add_task(self, content, date=None, priority=None):
          
          response = API.add_item(self.owner.token, content, project_id=self.id,
                                  date_string=date, priority=priority)
          _fail_if_contains_errors(response)
          task_json = response.json()
          return Task(task_json, self)
docs: Add a task to the project
  
          :param content: The task description.
          :type content: str
          :param date: The task deadline.
          :type date: str
          :param priority: The priority of the task.
          :type priority: int
          :return: The added task.
          :rtype: :class:`pytodoist.todoist.Task`
  
          .. note:: See `here <https://todoist.com/Help/timeInsert>`_
              for possible date strings.
  
          >>> from pytodoist import todoist
          >>> user = todoist.login('john.doe@gmail.com', 'password')
          >>> project = user.get_project('PyTodoist')
          >>> task = project.add_task('Install PyTodoist')
          >>> print(task.content)
          Install PyTodoist