Why Do Lists Compare As Greater Than Numbers, And Tuples Greater Than Lists?

In this post, we will learn Why do Lists compare as greater than numbers, and tuples greater than lists and where to make comparisons between two or more different types of data types in python it is governed by a set of rules that we need to follow those rules to compare them and here … Read more

What Are “named tuples” in Python?

In this post, we will learn more about What “named tuples” in Python it is nothing but a subclass of a regular tuple with a limitation as it has a fixed set of fields and there each field has a name. Which makes it easy to navigate and access the data and an intuitive way … Read more

Some Basic Python Tuple Programs-1

Some basic tuple programs

Tuple A tuple is an immutable and sequential collection of data that can be indexed and sliced. Python tuple can contain homogeneous as well as heterogeneous values of data types such as integers, floats, strings, lists, and dictionaries. Python Program to concatenate multiple tuples tup1 = (7, 1, 9) tup2 = (5, 2, 3, 4, … 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

List VS Tuple in Python – Differences Explained with Example

In this post we will learn about basic of list data-type in python, basic of tuple data-type in python and their difference with basic examples in place.   What is List in Python List is a mutable and sequenced data type. List can contain heterogeneous values such as integers, floats, strings, tuples, lists, and dictionaries … Read more

%d bloggers like this: