mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 01:00:13 -04:00
858 B
858 B
id, title, challengeType, dashedName
| id | title | challengeType | dashedName |
|---|---|---|---|
| 6579cd5f6dd62c189e53ddbb | Step 14 | 20 | step-14 |
--description--
Now that you reviewed the basic aspects of dictionaries, you can proceed to build the shortest path algorithm.
Delete every line of code after the declaration of the copper dictionary.
--hints--
You should delete all the lines of code after the declaration of your dictionary.
({ test: () => {
const commentless_code = __helpers.python.removeComments(code);
assert.isFalse( /copper\s*\[.*?\]|del|for|print\s*\(.*?\)/ms.test(commentless_code))
}
})
--seed--
--seed-contents--
copper = {
'species': 'guinea pig',
'age': 2
}
--fcc-editable-region--
copper['food'] = 'hay'
copper['species'] = 'Cavia porcellus'
del copper['age']
for i, j in copper.items():
print(i, j)
--fcc-editable-region--