Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.4 KB

README.MD

File metadata and controls

53 lines (42 loc) · 1.4 KB

Data Structure in Python 💜

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

Python        PyCharm

Here , we'll see functions used under these data types and some examples to have a clear understanding of these :

  1. Lists

    • append()
    • count()
    • extend()
    • index()
    • insert()
    • pop()
    • remove()
    • reverse()
    • all()
    • any()
    • enumerate()
    • clear()
  2. Dictionary

    • get()
    • items()
    • keys()
    • pop()
    • popitem()
    • setdefault()
    • update()
    • values()
    • clear()
  3. Tuple

    • count()
    • index()

All above functions are pre-defined functions and are widely used

All the codes are tested in Python 3.7

BuyMeACoffee

Leave a "STAR" if you like it !