Categories

Tuples

List

Tuples are similar to a list, but they are enclosed within parentheses, unlike the list

The list is used to create a sequence

The element and size can be changed

The element and size cannot be changed

They cannot be updated

They can be updated

They act as read-only lists

They act as a changeable list

Tuples use parentheses

Lists use square brackets

Example: tup = (1, "a", "string", 1+2)

Example: L = [1, "a" , "string" , 1+2]