From 60bef312b504ed5402dbb88dfe80176db90fa438 Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 6 Feb 2024 18:23:43 +0100 Subject: [PATCH] can now subtract --- python/tuple_tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/tuple_tools.py b/python/tuple_tools.py index 985f516..95c28be 100644 --- a/python/tuple_tools.py +++ b/python/tuple_tools.py @@ -1,4 +1,7 @@ +def subtract(a, b, c, x, y, z) -> tuple: + return (a-x, b-y, c-z) + def generate_neighbors(a, b, c): return [ (a-1, b, c),