- Mastering Python for Networking and Security
- José Manuel Ortega
- 62字
- 2021-07-16 17:39:52
Tuples
A tuple is like a list, but its size and elements are immutable, that is, its values cannot be changed nor can more elements be added than initially defined. A tuple is delimited by parentheses. If we try to modify an element of a tuple, we get an error indicating that the tuple object does not support the assignment of elements: