Dictionary | How Can I Find Who Has The Highest Average Grade Using Dictionary?

In this post, we will learn How can I find who has the highest average grade using a dictionary where we have direct built in functions like sum and diving by the total number of elements we can get the average so here we have taken an example and a pseudo code to explain the … Read more

What is Ordered Dictionary and Default Dictionary in Python?

What is Ordered Dictionary and Default Dictionary in Python?

Dictionary in Python Dictionary is an unordered collection of mutable values indexed by unique keys. Values in a dictionary can be of any datatype, mutable and can be duplicated, whereas keys can’t be repeated and are immutable. Dictionaries are just like map(), storing, and retrieving elements by referencing a key. As dictionaries are referenced by … Read more

Dictionary and Tuple in Python – Difference in Properties

Dictionary and Tuple in Python

In this post, we will learn about tuples and dictionaries in python and how to use tuples as dictionary keys. What is tuple in python? A tuple is an ordered and immutable collection. Tuples can hold homogeneous values as well as heterogeneous values(integers, floats, strings, lists, dictionaries, etc). Tuples are sequential, thus they can be … Read more

%d bloggers like this: