Otros tipos de datos Estructurados. (Informativo)
Requisitos de finalización
2. Sets
2.13. TypeError: 'int' object is not iterable
A menudo se obtienen errores de este tipo: TypeError: 'int' object is not iterable
Esto sucede por que el objeto no se puede iterar.
![](https://aulavirtual.fio.unam.edu.ar/pluginfile.php/93472/mod_book/chapter/6471/imagen.png)
El objeto a es un entero 'int' y no es iterable, no se puede convertir en una lista.. que si sería un objeto iterable, el error está diciendo claramente que no puede ejecutar la iteración en un número entero.
Otro:
![](https://aulavirtual.fio.unam.edu.ar/pluginfile.php/93472/mod_book/chapter/6471/imagen%20%282%29.png)
![](https://aulavirtual.fio.unam.edu.ar/pluginfile.php/93472/mod_book/chapter/6471/imagen%20%284%29.png)
![](https://aulavirtual.fio.unam.edu.ar/pluginfile.php/93472/mod_book/chapter/6471/imagen%20%283%29.png)
Nuevamente el error aparece, esto es por que intentamos que el for iterar algo que tin