Which line of code will create a Python dictionary?
(1 point)
Responses
sideItems = {"steak" : "baked potato", "enchiladas" : "rice and beans", "poke bowl" : "macaroni salad"}
sideItems = {"steak" : "baked potato", "enchiladas" : "rice and beans", "poke bowl" : "macaroni salad"}
sideItems = ("steak" : "baked potato", "enchiladas" : "rice and beans", "poke bowl" : "macaroni salad")
sideItems = ("steak" : "baked potato", "enchiladas" : "rice and beans", "poke bowl" : "macaroni salad")
sideItems = {"steak", "baked potato", "enchiladas", "rice and beans", "poke bowl", "macaroni salad"}
sideItems = {"steak", "baked potato", "enchiladas", "rice and beans", "poke bowl", "macaroni salad"}
sideItems = ["steak" : "baked potato", "enchiladas" : "rice and beans", "poke bowl" : "macaroni salad"]
sideItems = ["steak" : "baked potato", "enchiladas" : "rice and beans", "poke bowl" : "macaroni salad"]
The correct line of code to create a Python dictionary is:
sideItems = {"steak" : "baked potato", "enchiladas" : "rice and beans", "poke bowl" : "macaroni salad"}
The correct line of code to create a Python dictionary is:
sideItems = {"steak" : "baked potato", "enchiladas" : "rice and beans", "poke bowl" : "macaroni salad"}
The correct line of code to create a Python dictionary is:
sideItems = {"steak" : "baked potato", "enchiladas" : "rice and beans", "poke bowl" : "macaroni salad"}
A dictionary in Python is enclosed in curly braces {} and consists of key-value pairs separated by colons. In this example, the keys are "steak", "enchiladas", and "poke bowl", and the corresponding values are "baked potato", "rice and beans", and "macaroni salad" respectively.