Created
April 4, 2018 12:16
-
-
Save Fhernd/e3a8e6c646e6752fb96f72a7f670ba65 to your computer and use it in GitHub Desktop.
Mapeo de elementos de una secuencia. OrtizOL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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