FAQ: Creating Dictionaries - Add Multiple Keys

This community-built FAQ covers the “Add Multiple Keys” exercise from the lesson “Creating Dictionaries”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Computer Science

FAQs on the exercise Add Multiple Keys

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

1 Like

2 posts were split to a new topic: Do dictionaries preserve order now?

Can we use the update method in lists or other types of date?

If so, how?

Which update method? Any docs to see which method you mean?

This is an example of what I mean
In this case it is used to add multiple keys to a dictionary

user_ids = {"teraCoder": 9018293, "proProgrammer": 119238}

user_ids.update({'theLooper': 138475, 'stringQueen': 85739})


methods are specific to data types. For list we could use extend

1 Like