The Tuple Object and Its Immutability
摘要
In Python, a tuple is an immutable data structure designed to store multiple elements, which can be accessed using index values. Tuples are similar to lists, but with one key difference: once a tuple is created, its elements cannot be added, deleted, or modified. This chapter explores how tuples are implemented and highlights some of their interesting characteristics.