in Python by
What Is A Tuple In Python?

1 Answer

0 votes
A tuple is a collection type data structure in Python 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
0 votes
asked Aug 29, 2020 in Python by Robindeniel
+1 vote
asked Feb 13 in Python by SakshiSharma