Introduction
Python basically has four collections:
- List
- Dictionary
- Set
- Tuple
This list is mutable, and can be accessed using indexes, It also stores duplicates.
Dictionary is mutable. It stores values in the format of key:value pair.
Set is unordered. It does not store duplicate entries.
Tuple is immutable. It stores duplicates.
Summary
In this article, we learned with simple examples how to combine two collections in Python.