Skip to content

Instantly share code, notes, and snippets.

@rahulremanan
Created February 28, 2023 16:22
Show Gist options
  • Save rahulremanan/8dcd1a28d902a3a7caaf274a54090dc4 to your computer and use it in GitHub Desktop.
Save rahulremanan/8dcd1a28d902a3a7caaf274a54090dc4 to your computer and use it in GitHub Desktop.
Create a simple named tuple to represent x and y coordinates
Pair = collections.namedtuple('Pair', 'j k')
p = Pair(1.0, 2.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment