in Python by
Q:
Can you please explain what is a tuple in Python Language?

1 Answer

0 votes
by

A tuple is a collection type data structure in Python Language which is immutable.

They are similar to sequences, just like the lists. However, There are some differences between a tuple and list; the former doesn’t allow modifications whereas the list does.

Also, the tuples use parentheses for enclosing, but the lists have square brackets in their syntax.

Related questions

0 votes
0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
...