"""Starter code for the worksheet on dictionaries.
"""

EXPRESS_MAX = 8


def express_checkout(product_to_quantity: dict[str, int]) -> bool:
    """Return True if and only if the grocery order in product_to_quantity
    qualifies for the express checkout. product_to_quantity maps
    products to the numbers of those products in the grocery order.

    Precondition: all values in product_to_quantity are non-negative.

    >>> express_checkout({'banana': 3, 'soy milk': 1, 'peanut butter': 1})
    True
    >>> express_checkout({'banana': 3, 'soy milk': 1, 'twinkie': 7})
    False
    >>> express_checkout({'banana': 3, 'soy milk': 1, 'twinkie': 5})
    ???
    >>> express_checkout(???)
    ???
    >>> express_checkout(???)
    ???
    >>> express_checkout(???)
    ???

    """

    pass


def build_placements(shoes_at_finish_line: list[str]) -> dict[str, list[int]]:
    """Return a dictionary built from the information in
    shoes_at_finish_line, where each key is a brand and each value is
    a list of placements by people wearing shoes made by that
    company. shoes_at_finish_line contains shoe brands in order, in
    which they appeared at the finish line.

    >>> result = build_placements(['Saucony', 'Asics', 'Asics', 'NB',
    ...                            'Saucony', 'Nike', 'Asics', 'Adidas',
    ...                            'Saucony', 'Asics'])
    >>> result == {'Saucony': [1, 5, 9], 'Asics': [2, 3, 7, 10], 'NB': [4],
    ...                        'Nike': [6], 'Adidas': [8]}
    True
    >>> build_placements(???)
    ???
    >>> build_placements(???)
    ???
    >>> build_placements(???)
    ???

    """

    pass


if __name__ == '__main__':
    import doctest
    doctest.testmod()
