February 2024

Dictionaries in Python

Dictionaries in Python are collections of data pairs, which are mutable, unordered, and indexed. While other compound data types such as lists and tuples have only value as an element, a dictionary has key-value pairs. This key-value feature makes it more efficient for looking up things. You can create a dictionary in Python as shown …

Dictionaries in Python Read More »

Tuple in Python

Tuples in Python are a built-in data type for storing multiple items in a single variable. They are a collection of objects that are ordered and immutable. Tuples are essentially immutable sequences that can hold a mix of any Python objects or data types including numbers, strings, lists, etc. In Python, tuples are created by …

Tuple in Python Read More »