def replace_short_forms(note: str, long_forms: list, span: list) -> str:
    """
    Given a list of long forms and the span of the short forms, replace
    the short form by long form in note using the string indeces.
    """
    note_replaced: str = note
    # Iterates in reverse order, otherwise we would have to change the span indeces
    for long_form, index_span in zip(long_forms[::-1], span[::-1]):
        note_replaced = note_replaced[: index_span[0]] + long_form + note_replaced[index_span[1]:]

    return note_replaced