0 votes
in Python by
What Is A Tuple In Python?

1 Answer

0 votes
by
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
asked Aug 29, 2020 in Python by Robindeniel
0 votes
asked May 16, 2020 in Python by AdilsonLima
...