"""Starter code for the worksheet on parallel lists and strings.
"""


def stretch_string(text: str, stretch_factors: list[int]) -> str:
    """Return a string consisting of the characters in text in the same
    order as in text, repeated the number of times indicated by the
    item at the corresponding position of stretch_factors.

    Precondition: len(text) == len(stretch_factors) and the items of
                  stretch_factors are non-negative

    >>> stretch_string('Hello', [2, 0, 3, 1, 1])
    'HHllllo'
    >>> stretch_string('echo', [0, 0, 1, 5])
    ???
    >>> stretch_string(???)
    ???
    >>> stretch_string(???)
    ???
    >>> stretch_string(???)
    ???
    """

    pass


def greatest_difference(nums1: list[int], nums2: list[int]) -> int:
    """Return the greatest absolute difference between numbers at corresponding
    positions in nums1 and nums2.

    Precondition: len(nums1) == len(nums2) > 0

    >>> greatest_difference([1, 2, 3], [6, 8, 10])
    7
    >>> greatest_difference([1, -2, 3], [-6, 8, 10])
    ???
    >>> greatest_difference(???)
    ???
    >>> greatest_difference(???)
    ???
    >>> greatest_difference(???)
    ???
    """

    pass


if __name__ == '__main__':

    import doctest
    doctest.testmod()
