CJCoding With Joseph
15free / daySign inCreate account

Keys And Values Side By Side

Loop over prices and print each key followed by its value on the same line, separated by one space, by passing both to one print call with the value read as prices[key]. Input: none. Output: three lines, name then price, in insertion order.

Expected Output:

apple 0.5
bread 2.25
milk 1.8

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
Dictionaries
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.