Mastery check
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}

No labels here: choosing the approach is part of what this tests. The skills it trains show once you pass.

main.pylearnPython