Search

Tuple in python ( with example )

Tuples is a collection of related data. Tuples is a collection of ordered and immutable data . Immutable things can’t change. In python tuples are written with round brackets.

How to create a tuple?

Run example

You can define the range of indexes where to start and where to end.

Negative indexes if you want to start the search then start the search from the end.

Lists.

1. Lists are ordered

2. Lists are mutable

3. Lists are dynamic

Tuple

1. Tuple is defined by ()

2. Tuple are immutable .

Note. The next blog will be on Python Dictionary.

Table of Contents

Social Media
Facebook
Twitter
WhatsApp
LinkedIn