Files
2024-05-22 17:27:37 +02:00

957 B

id, title, challengeType, dashedName
id title challengeType dashedName
65576ff7888f9e96f52a4be1 Paso 2 20 step-2

--description--

Dictionaries store data in the form of key-value pairs. A key is separated from the correspondent value by a colon. And each key-value pair is separated from the following pair by a comma:

my_dict = {
    'name': 'Michael',
    'occupation': 'Lumberjack'
}

Add a new key-value pair to your dictionary. Use the string 'species' as the key, and the string 'guinea pig' as the value.

--hints--

You should have a 'species' key with the value 'guinea pig' inside your copper dictionary.

({ test: () => assert(runPython(`
    copper == {"species": "guinea pig"}
  `))
})

Your copper dictionary should have a single key-value pair.

({ test: () => assert(runPython(`
    len(copper) == 1
  `))
})

--seed--

--seed-contents--

--fcc-editable-region--
copper = {}
--fcc-editable-region--