Coding task · Python course · Module 2: Data Structures

Adding to a Dictionary

Add a new key-value pair

Task

Add the key 'habitat' with the value 'Jungle' to the dictionary animal = {'name': 'Python', 'length': 5}