Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created June 25, 2018 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/36b305dee045b1f8323a4a6bb6e5001c to your computer and use it in GitHub Desktop.
Save Fhernd/36b305dee045b1f8323a4a6bb6e5001c to your computer and use it in GitHub Desktop.
Iterar múltiples colecciones con el método chain. OrtizOL.
from itertools import chain
ids = [2, 3, 5, 7, 11]
nombres = ['Mishkin', 'Fomma', 'Nesvanova', 'Rodión', 'Fiodor']
for x in chain(ids, nombres):
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment