Why the code:

```
lista=['1','2','3','4']
for element in lista:
    element=int(element)

```

won't work while the following code works?

```
lista=['1','2','3','4']
for i in range(len(lista)):
    lista[i]=int(lista[i])

```

Obs: I'm using Python 3.4.