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

879 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 have an 'age' key with the value 2 just after 'species': 'guinea pig', inside your copper dictionary. Don't forget the comma.

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

You should have two key-value pairs in your copper dictionary.

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

--seed--

--seed-contents--

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