Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
36.8K+ articles
Python
21.2K+ articles
Python Programs
3.8K+ articles
Difference Between
3.4K+ articles
Python list-programs
1.7K+ articles
Python-DSA
233+ articles
Python How-to-fix
122+ articles
python-oop-concepts
91+ articles
deque
65+ articles
Needs more review
+ articles
Python collections-module
24 posts
Recent Articles
Popular Articles
Methods of Ordered Dictionary in Python
Last Updated: 16 February 2022
An OrderedDict is a dict that remembers the order in that keys were first inserted. If a new entry overwrites an existing entry, the original insertion position is left un...
read more
Python
Python collections-module
Python Collections Module
Last Updated: 13 June 2025
The collection Module in Python provides different types of containers. A Container is an object that is used to store different objects and provide a way to access the co...
read more
Python
Python collections-module
Python - Counter.items(), Counter.keys() and Counter.values()
Last Updated: 10 July 2024
Counter class is a special type of object data-set provided with the collections module in Python3. Collections module provides the user with specialized container datatyp...
read more
Python
Python collections-module
Difference between DataClass vs NamedTuple vs Object in Python
Last Updated: 01 August 2020
Data Class: Data Class is a type of class that is used to store data without any functionality. These data classes are just regular classes having the main purpose to stor...
read more
Python
python-oop-concepts
Python collections-module
How to get the first and last elements of Deque in Python?
Last Updated: 01 October 2020
Deque is a Double Ended Queue which is implemented using the collections module in Python. Let us see how can we get the first and the last value in a Deque.Method 1: Acce...
read more
Python
deque
Python collections-module
Python - Queue.LIFOQueue vs Collections.Deque
Last Updated: 03 July 2024
Both LIFOQueue and Deque can be used using in-built modules Queue and Collections in Python, both of them are data structures and are widely used, but for different purpos...
read more
Python
Python collections-module
Difference between queue.queue vs collections.deque in Python
Last Updated: 22 February 2023
Both queue.queue and collections.deque commands give an idea about queues in general to the reader but, both have a very different application hence shouldn't be confused ...
read more
Python
Difference Between
Python collections-module
How to check if an object is iterable in Python?
Last Updated: 26 August 2022
In simple words, any object that could be looped over is iterable. For instance, a list object is iterable and so is an str object. The list numbers and string names are i...
read more
Python
Technical Scripter 2020
Python-Built-in-functions
Python collections-module
How to convert JSON to Ordereddict?
Last Updated: 24 January 2021
The full-form of JSON is JavaScript Object Notation. It means that a script (executable) file which is made of text in a programming language, is used to store and transfe...
read more
Technical Scripter
Python
Picked
Technical Scripter 2020
Python collections-module
Python-json
How to iterate over OrderedDict in Python?
Last Updated: 07 February 2023
An OrderedDict is a subclass that preserves the order in which the keys are inserted. The difference between OrderedDict and Dict is that the normal Dict does not keep a t...
read more
Python
Picked
Python collections-module
Convert a Nested OrderedDict to Dict - Python
Last Updated: 29 January 2025
The task of converting a nested OrderedDict to a regular dictionary in Python involves recursively transforming each OrderedDict including nested ones into a standard dict...
read more
Python
Picked
python-dict
Python collections-module
Python program to get all subsets having sum x
Last Updated: 25 February 2021
We are given a list of n numbers and a number x, the task is to write a python program to find out all possible subsets of the list such that their sum is x.Examples:Input...
read more
Python
Python collections-module
Python list-programs
Python most_common() Function
Last Updated: 17 April 2025
most_common() function is a method provided by the Counter class in Python's collections module. It returns a list of the n most common elements and their counts from a co...
read more
Python
Picked
Python-Functions
Python collections-module
Python Counter.update() Method
Last Updated: 03 April 2024
Python's Counter is a subclass of the dict class and provides a convenient way to keep track of the frequency of elements in an iterable. The Counter.update() method is pa...
read more
Python
Picked
Python collections-module
How to Fix AttributeError: collections has no attribute 'MutableMapping' in Python
Last Updated: 13 June 2024
The AttributeError: module 'collections' has no attribute 'MutableMapping' error is a common issue encountered by the Python developers especially when working with the ol...
read more
Python
Python collections-module
Python How-to-fix
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !