Mutable Data Structures: Lists and Dictionaries

Give Feedback

In this lesson, you’ll see how you could approach this data set using mutable data structures, like lists and dictionaries. When you use mutable data structures, their contents can be modified. So if you use them to hold your data, then you run the risk of messing up your data set, since it can be changed.

If you want to have a multithreaded program and do parallel processing, then using immutable data structures would allow you to not have to worry about locking the data structures because there would be no way to update them.

Comments & Discussion

senatoduro8 on July 24, 2019

I wish the data used in this tutorials is provided like it is in the asyncio tutorials.

Dan Bader RP Team on July 24, 2019

@senatoduro8: Cheers, I just added the code sample to the end of section 1 :)

senatoduro8 on July 25, 2019

Thanks Dan. This tutorial is great! It did help me learn new was to use the map, reduce and apply functions creatively.

Pygator on Jan. 18, 2020

I thought you were going to reach in and change the name to ‘Dan Bader’ :)

Become a Member to join the conversation.