Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created April 4, 2018 12:16
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/e3a8e6c646e6752fb96f72a7f670ba65 to your computer and use it in GitHub Desktop.
Save Fhernd/e3a8e6c646e6752fb96f72a7f670ba65 to your computer and use it in GitHub Desktop.
Mapeo de elementos de una secuencia. OrtizOL.
from collections import namedtuple
Subscriptor = namedtuple('Subscriptor', ['email', 'registrado'])
subscriptor = Subscriptor('balzac@gmail.fr', '1799-05-20')
print(subscriptor.email)
print(subscriptor.registrado)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment