Snippet

  # namedtuple — snippet #165
# Adapt imports and variable names to your project

def example_165():
    """Demonstrates namedtuple pattern."""
    pass  # replace with implementation
  

Use When

You need a quick starting point for namedtuple without writing boilerplate from scratch.

See Also