---
title: "Discussion on \"Named Tuples\" | Hashnode"
description: "Discussion on \"Named Tuples\". Import\nfrom collections import namedtuple\nDeclarations\nPoint1 = namedtuple('Point', ['x', 'y'])\nPoint2 = namedtuple('Point', 'x, y')\nPoint3 = namedtuple('Point', 'x y')\nPoint4 = namedtuple('Point', 'x y x class', rename=True) # Default = False\nCreati..."
url: "https://hashnode.com/posts/named-tuples/614a72f6699fe76cd348758a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Named Tuples](https://developmentblog.hashnode.dev/named-tuples?utm_source=hashnode&utm_medium=feed)

Import from collections import namedtuple Declarations Point1 = namedtuple('Point', \['x', 'y'\]) Point2 = namedtuple('Point', 'x, y') Point3 = namedtuple('Point', 'x y') Point4 = namedtuple('Point', 'x y x class', rename=True) # Default = False Creati...

Sep 22, 2021 · 1 min read · developmentblog.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)

## Written by

[Eric Shin](https://hashnode.com/@eric189)

@eric189

  
[View profile](https://hashnode.com/@eric189)

A student interested in Machine Learning

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
