@ 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.
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