Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
python
1.2K+ articles
Python dictionary-programs
582+ articles
python-dict
257+ articles
Python-dict-functions
12 posts
Recent Articles
Popular Articles
Python dict() Function
Last Updated: 23 July 2025
dict() function in Python is a built-in constructor used to create dictionaries. A dictionary is a mutable, unordered collection of key-value pairs, where each key is uniq...
read more
Python
Picked
Python-Functions
python-dict
Python-dict-functions
Different ways of sorting Dictionary by Values and Reverse sorting by values
Last Updated: 23 July 2025
Prerequisite: Dictionaries in PythonA dictionary is a collection which is unordered, changeable, and indexed. In Python, dictionaries are written with curly brackets, and ...
read more
DSA
Python-dict-functions
Python dictionary-programs
Combine similar characters in Python using Dictionary Get() Method
Last Updated: 15 July 2025
Let us see how to combine similar characters in a list.Example :Input : ['g', 'e', 'e', 'k', 's', 'f', 'o', 'r', 'g', 'e', 'e', 'k', 's']Output : ['gg', 'eeee', 'kk', 'ss'...
read more
Python
python-dict
Python-dict-functions
Use get() method to Create a Dictionary in Python from a List of Elements
Last Updated: 15 July 2025
We are given a list of elements and our task is to create a dictionary where each element serves as a key. If a key appears multiple times then we need to count its occurr...
read more
Python
python-dict
Python-dict-functions
Dictionary has_key() - Python
Last Updated: 11 July 2025
The has_key() method in Python was used to check whether a specified key exists in a dictionary. However, this method was removed in Python 3 and the preferred approach to...
read more
Python
python-dict
Python-dict-functions
Python Dictionary pop() Method
Last Updated: 11 July 2025
The Python pop() method removes and returns the value of a specified key from a dictionary. If the key isn't found, you can provide a default value to return instead of ra...
read more
Python
python-dict
Python-dict-functions
Python Dictionary popitem() method
Last Updated: 11 July 2025
popitem() method in Python is used to remove and return the last key-value pair from the dictionary. It is often used when we want to remove a random element, particularly...
read more
Python
python-dict
Python-dict-functions
Python Dictionary keys() method
Last Updated: 17 February 2026
dict.keys() method in Python returns a view object that contains all the keys of the dictionary. The returned object is dynamic, meaning any changes made to the dictionary...
read more
Python
python-dict
Python-dict-functions
python
Python Dictionary items() method
Last Updated: 17 February 2026
dict.items() method in Python returns a view object containing all key-value pairs of the dictionary as tuples. This view updates automatically when the dictionary is modi...
read more
Python
python-dict
Python-dict-functions
Python Dictionary update() method
Last Updated: 16 February 2026
update() method in Python dictionary is used to add new key-value pairs or modify existing ones using another dictionary, iterable of pairs or keyword arguments. If a key ...
read more
Python
python-dict
Python-dict-functions
Python Dictionary setdefault() Method
Last Updated: 08 September 2025
The setdefault() method in Python is used with dictionaries to:Return the value of a specified key if it exists.If the key does not exist, it adds the key with a default v...
read more
Python
python-dict
Python-dict-functions
Python Dictionary fromkeys() Method
Last Updated: 09 August 2022
Python dictionary fromkeys() function returns the dictionary with key mapped and specific value. It creates a new dictionary from the given sequence with the specific valu...
read more
Python
python-dict
Python-dict-functions
×
Advertisement