Question 1/6: Which of these lines create dictionaries?
Hint: Dictionaries use opening and closing brackets to start and end, use colons to separate each key from its value, and use commas between items.Click to show.
Option 1:
var roles = ["captain": "Mal", "engineer": "Kaylee"]
This creates a dictionary with strings for keys and strings for values.
Option 2:
var place = ["road", "Park Lane", "city", "Cardiff"]