Files
2024-01-24 19:52:36 +01:00

967 B

id, title, challengeType, dashedName
id title challengeType dashedName
6578b13757611e2825beb8a5 Schritt 3 20 step-3

--description--

Keys must be unique within a dictionary and they can be only immutable data types. This means you cannot use a list or another dictionary as keys.

Add another key age to your dictionary and give it the integer number 2 as value.

--hints--

You should add a new key-value pair to your copper dictionary.

({ test: () => assert(__pyodide.runPython(`
    copper = __locals.get("copper")
    len(copper) == 2
  `))
})

You should have an age key with the value 2 just after 'species': 'guinea pig', inside your copper dictionary. Don't forget the comma.

({ test: () => assert(__pyodide.runPython(`
    copper = __locals.get("copper")
    copper == {"species": "guinea pig", "age": 2}
  `))
})

--seed--

--seed-contents--

--fcc-editable-region--
copper = {'species': 'guinea pig'}
--fcc-editable-region--