Skip to content

Instantly share code, notes, and snippets.

@AdamGold
Created March 9, 2019 16:27
Show Gist options
  • Save AdamGold/83afc1ecc510ae119e35c191d374c275 to your computer and use it in GitHub Desktop.
Save AdamGold/83afc1ecc510ae119e35c191d374c275 to your computer and use it in GitHub Desktop.
In [6]: import collections
In [7]: Article = collections.namedtuple("Article", ["title", "description", "id"])
In [8]: Article(title="Python is cool.", id=1, description="")
Article(title='Python is cool.', description='', id=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment