Data Structure used in Python:
Lists are data types used to collect mutable objects
Dictionaries are data types to collect mutable objects
Tuples are data types to collect immutable objects
Here , we'll see functions used under these data types and some examples to have a clear understanding of these :
-
Lists
- append()
- count()
- extend()
- index()
- insert()
- pop()
- remove()
- reverse()
- all()
- any()
- enumerate()
- clear()
-
Dictionary
- get()
- items()
- keys()
- pop()
- popitem()
- setdefault()
- update()
- values()
- clear()
-
Tuple
- count()
- index()
All above functions are pre-defined functions and are widely used
All the codes are tested in Python 3.7