(sections, section_id)
given a sequence of sections, return the section with the given id.
given a sequence of sections, return the section with the given id.
given a sequence of sections return the section with the given id .
def get_section(sections, section_id):
    '''
    given a sequence of sections, return the section with the given id.
    '''
    for i, section in enumerate(sections):
        if i == 0:
            continue

        if section.data.id != section_id:
            continue

        return section
def get_section ( sections , section_id ) : for i , section in enumerate ( sections ) : if i == 0 : continue if section . data . id != section_id : continue return section