Skip to content
shbytes.com
  • Home
  • Tutorials
    • PythonLearn Python Programming Basics – Beginner to Master
    • Power BIPower BI – Comprehensive Guide to Master Data Visualization
  • Quizzes
  • Blogs
  • About

13.Python Collections

Python Collections

Posted in13.Python Collections

UserDict, UserList and UserString – Collections in Python

In Python UserDict, UserList and UserString are classes in the collections module. These classes provide a way to create custom dictionary, list, and string-like objects by inheriting from them. These…
Read More
Posted in13.Python Collections

OrderedDict – Collections in Python

An OrderedDict in Python is a dictionary class from the collections module. It is a subclass of the dict class. This is used to maintain the order of key-value pairs,…
Read More
Posted in13.Python Collections

defaultdict – Collections in Python

In Python, defaultdict is a subclass of the built-in dict class. defaultdict returns a new dictionary-like object. It provides a default value for a nonexistent key automatically, without raising a…
Read More
Posted in13.Python Collections

namedtuple – Collections in Python

namedtuple collection in Python is part of the collections module. it provides a simple way to create lightweight object types similar to tuples, but with named fields. Named fields in…
Read More
Posted in13.Python Collections

deque – Collections in Python

In Python, deque is a class from collections module. deque is short for double-ended queue. It provides an alternative and optimized way to work with queue and stack. deque has…
Read More
Posted in13.Python Collections

Counter – Collections in Python

In Python, Counter is a subclass of dict that is part of the collections module. collections module in Python provides specialized container data types and offer alternatives to general-purpose built-in…
Read More
Posted in13.Python Collections

ChainMap – Collections in Python

ChainMap is one of the most commonly used class provided by the collections module. collections module in Python provides specialized container data types that extend the capabilities of built-in data…
Read More
Posted in13.Python Collections

Collections in Python – Quickstart

In Python, the collections module provides alternatives to Python's built-in container types like dict, list, and tuple. These alternatives are often more flexible, efficient, or feature-rich than their basic counterparts.…
Read More

Follow shbytes on LinkedIn:

  • LinkedIn
  • Introduction to Python Programming Language
  • Python 3 Installation on Windows
  • How to Install Python 3 on Ubuntu: A Comprehensive Guide
  • What is an IDE (Integrated Development Environment) - A Complete Guide for Developers
  • Popular IDEs for Python in 2024 – Best Python Development Environments
  • What Are Comments and Docstring in Python (With Programs)?
  • Introduction to Variables in Python & Variable Data Types
  • Understanding Number Datatype in Python: Decimal, Octal and Hexadecimal Numbers
  • Understanding Scope in Python Programming (with Example Programs)
  • Understanding Lists in Python: A Comprehensive Guide
  • How to Create List in Python | Python List Creation Methods Explained
  • How to Access List Elements by Index in Python (with Example Programs)
  • Python List Index Method Explained with Examples | Get Element Position in List
  • Append Elements to List – Python | Add Elements with Append Method
  • Update List Elements | Modify Elements in Python List
  • Remove Elements from List in Python | Delete Items from List
  • Introduction to List Slicing in Python - Methods, Syntax, and Examples
  • Concatenate Lists in Python - Complete Guide to List Concatenation Methods
  • How to Unpack List in Python - Packing and Unpacking in Python (with Programs)
  • Loops and List Comprehension in Python: A Complete Guide
  • Count & Sort Methods in Python Lists: Tutorial with Examples
  • Tuples in Python: Operations, Definition & Examples
  • Create Tuple in Python: Methods, Examples, and Explanation
  • Access Tuple Elements by Index in Python: Positive and Negative Indexing Explained
  • Understand the Index Method in Python Tuples: Use Cases, Limitations, and Examples
  • Append Elements to Tuple in Python: Methods, Errors, and Examples
  • How to Change Elements in a Tuple in Python: Methods, Errors, and Examples
  • How to Remove Elements from a Tuple in Python: Methods, Errors, and Examples
  • Slicing of Tuple in Python: Methods, Examples & Interview Questions
  • Concatenate Tuples in Python: Methods, Examples, and Programs
  • Packing and Unpacking of Tuples in Python: Methods, Examples, and Programs
  • Loop and Comprehension in tuple - Python
  • Count & Sort methods in tuple - Python
  • Python Tuple - Practice Program 1
  • Python Tuple - Practice Program 2
  • Set in Python - Quickstart
  • Create Set in Python
  • Add elements in Set - Python
  • Remove elements from Set - Python
  • Union of Sets - Python
  • Intersection of Sets - Python
  • Difference of Sets - Python
  • Symmetric Difference of Sets - Python
  • Disjoint Sets - Python
  • Subset - Python
  • Superset - Python
  • Python Set - Practice Program 1
  • Python Set - Practice Program 2
  • Dictionary in Python - Quickstart
  • Create Dictionary - Python
  • Add elements in Dictionary - Python
  • Access elements in Dictionary - Python
  • Remove elements from Dictionary - Python
  • Nested dictionary - Python
  • fromkeys and setdefault methods - Python
  • Shallow copy vs Deepcopy of Dictionary- Python
  • Built-in methods - Python
  • Dictionary Comprehension - Python
  • Dictionary - Practice Program 1
  • Array in Python - Quickstart
  • Array in Python
  • Insert & append methods - Add elements in Array - Python
  • Index and index method in Array - Python
  • Remove elements from Array - Python
  • Concatenation of Arrays - Python
  • Comprehension and filter in Arrays - Python
  • Arrays built-in methods - Python
  • Python Operators
  • Flow Controls in Python
  • Loops in Python
  • Collections in Python - Quickstart
  • ChainMap - Collections in Python
  • Counter - Collections in Python
  • deque - Collections in Python
  • namedtuple - Collections in Python
  • defaultdict - Collections in Python
  • OrderedDict - Collections in Python
  • UserDict, UserList and UserString - Collections in Python
  • Function in Python
  • Function arguments - Pass by reference vs Pass by value
  • File handling in Python
  • Exception Handling in Python
  • Object Oriented Programming in Python - Classes and Objects
  • Object Oriented Programming - Inheritance in Python
  • Abstraction in Python (with Examples)
  • Polymorphism in Python (with Examples)
  • Method Overloading in Python (with Examples)
  • Method Overriding in Python (with Examples)
  • Iterators in Python (with Examples)
  • Python Functions as First-Class Objects (with Examples)
  • Decorators in Python (with Examples)
  • Generators in Python (with Examples)
  • Modules in Python
  • Subscribe to our newsletter!

    shbytes.com
    shbytes.com
    • Python Programming – Beginner to Master
    • Power BI – Comprehensive Guide to Master Data Visualization
    • About
    • Home
    • Newsletter
    • Privacy Policy
    • Tutorials

    Subscribe to our newsletter!

    Copyright 2025 — shbytes.com. All rights reserved.
    Scroll to Top