Set and Dictionary
摘要
In the previous chapter, we looked at tuples, which are immutable, ordered collections that are often used to group related pieces of data. We saw how tuples differ from lists in terms of mutability and how they play a role in functions that return multiple values. Building on that understanding of sequences and immutability, we now turn our attention to two more collection types: dictionaries and sets.