Skip to content

Instantly share code, notes, and snippets.

@rahulremanan
Created February 28, 2023 16:25
Show Gist options
  • Save rahulremanan/31cbcc98b133a9b7b5c62564a02f89e3 to your computer and use it in GitHub Desktop.
Save rahulremanan/31cbcc98b133a9b7b5c62564a02f89e3 to your computer and use it in GitHub Desktop.
A simple Python for-loop to manipulate the named tuples
for i in range(10):
p = Pair((p.j + p.k), (p.j - p.k))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment