---
# System prepended metadata

title: Python TP Gr.6 Eq.3

---

# Python TP Gr.6 Eq.3

##### You can put your code in the section below with in the three ` ```python= ``` `

```python=
a = 3
b = 6
# this is called pythonic code style
a, b = b, a
# a = 6, b = 3
```



```python=
a, *rest = [1, 2, 3]
# a = 1, rest = [2, 3]
a, *middle, c = [1, 2, 3, 4]
# a = 1, middle = [2, 3], c = 4
```