Python> Tuples versus Lists

Reference 1

@ Introducing Python: Modern Computing in Simple Packages by Bill Lubanovic (No. 1466 / 12833)

..., but they have many fewer functions -- there is no append(), insert(), and so on -- because they can't be modified after creation.

The reason for using tuple compared to list is described.

Below is an example of Named tuples. http://stackoverflow.com/questions/2970608/what-are-named-tuples-in-python

Passing tuples to Function arguments is separate.

Reference 2

About the difference between tuple and list http://stackoverflow.com/questions/626759/whats-the-difference-between-lists-and-tuples

Tuples have structure, lists have order.

Such.

Recommended Posts

Python> Tuples versus Lists
Python3 | Lists, Tuples, Dictionaries
Python lists, tuples, dictionaries
Memorize Python commentary 5 --Lists
How tuples work | Python
Save lists, dictionaries and tuples to external files python
Manipulating Python character lists (arrays)
Python Basic Course (5 List Tuples)
Python list and tuples and commas
[Introduction to Python3 Day 7] Chapter 3 Py Tools: Lists, Tuples, Dictionaries, Sets (3.3-3.8)
Python
Easily handle lists with python + sqlite3
[Introduction to Python3 Day 5] Chapter 3 Py Tools: Lists, Tuples, Dictionaries, Sets (3.1-3.2.6)
[Introduction to Python3 Day 6] Chapter 3 Py tool lists, tuples, dictionaries, sets (3.2.7-3.2.19)
I'm addicted to Python 2D lists
[Python beginner] Join two lists alternately (5 lines).
Process multiple lists with for in Python
Understand python lists, dictionaries, and so on.