Mastery check
Rep 3of 8 in this section
Foundation Rep~4 min
Write: menu from two lists
items is a list of item names (strings). prices is a list of whole-number prices, the same length: prices[i] is the price of items[i].
Write make_menu(items, prices) that returns a dict mapping each item name to its price.
make_menu(['tea', 'cake'], [4, 5]) → {'tea': 4, 'cake': 5}
main.pylearnPython