def __init__(self, chapter, access_token=None):
    super(InternUdemyChapter, self).__init__()
    self._chapter_id = chapter['chapter_id']
    self._chapter_title = chapter['chapter_title']
    self._chapter_index = chapter['chapter_index']
    self._lectures_count = chapter.get('lectures_count', 0)
    self._lectures = ([InternUdemyLecture(z, access_token=access_token) for z in chapter['lectures']] if (self._lectures_count > 0) else [])
def __init__(self, chapter, access_token=None):
    super(InternUdemyChapter, self).__init__()
    self._chapter_id = chapter['chapter_id']
    self._chapter_title = chapter['chapter_title']
    self._chapter_index = chapter['chapter_index']
    self._lectures_count = chapter.get('lectures_count', 0)
    self._lectures = ([InternUdemyLecture(z, access_token=access_token) for z in chapter['lectures']] if (self._lectures_count > 0) else [])