in Python by
Q:
What Is A Tuple In Python?

▼ Show 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.
Python
Learn More with Madanswer

Related questions

0 votes
0 votes
0 votes
asked Aug 29, 2020 in Python by Robindeniel
...