Creo que zip está explicado acá

https://www.programiz.com/python-programming/methods/built-in/zip



El miércoles, 10 de abril de 2019, Karen Tatiana Mesa Lopez
<karen.lopez@buho.media> escribió:
> Hola Luis, tengo la ultima pregunta, te agradezco mucho tu ayuda
> voy a realizar un for doble, mi pregunta puntual seria,
> los arreglos del for doble tienen que llevar la misma cantidad de datos
ejemplo
> tema = ['1','2']
> otro  = ['1','2']
> for t ,o  in zip(tema,otro):
>     print(t,o)
> ¿o pueden llevar diferentes longitudes?
> De que manera puedo recorrer dos Array al mismo tiempo, con diferentes
longitudes, para guardarlo en un solo save de Django.
> tema = ['1','2']
> otro  = ['1','2','3','4']
> for t ,o  in zip(tema,otro):
>     print(t,o)
>
>
> Quedo muy agradecida por dedicar un poco de tu tiempo a mis preguntas.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAFC_1o5RgYd7s-JPYgt1O41t6tugnuY6C795skQKGb3pp%2BE2-Q%40mail.gmail.com
.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
"La utopía sirve para caminar" Fernando Birri

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%2B5VyOT0zLhB0eZCEjhTu-4FzYqi2V_Kr0NXukkksNGyR8t2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to