Dictionary Views & Set Operations — Working with dictionary view objects


#1

The keys, values and items from a dictionary can be accessed using the .keys(), .values() and .items() methods. These methods return view objects which provide a view on the source dictionary.


This is a companion discussion topic for the original entry at https://www.pymadethis.com/article/python-dictionary-sets/