Commit 2869d1e9 authored by Tancredi Orlando's avatar Tancredi Orlando
Browse files

Expand tuple section.

parent 6d967001
......@@ -340,7 +340,21 @@ lista = [false, 1, "due", 3.0, 4, 5]
- Si definiscono con le parentesi tonde
```python
tupla = ('a', 1, 2, 'bcd')
tupla = ('a', 1, 2, '3.0')
```
```
>>> tupla[1] = 1.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'tuple' object does not support item assignment
```
```
>>> tupla.append('sei')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'tuple' object has no attribute 'append'
```
----
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment