Created
February 28, 2023 16:22
-
-
Save rahulremanan/8dcd1a28d902a3a7caaf274a54090dc4 to your computer and use it in GitHub Desktop.
Create a simple named tuple to represent x and y coordinates
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
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