From eed908d58f033aed85ac894d128b8b96523f86dd Mon Sep 17 00:00:00 2001 From: gdltosea <105324256+gdltosea@users.noreply.github.com> Date: Thu, 2 Jun 2022 19:40:42 -0700 Subject: [PATCH] Add debug.py --- debug.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 debug.py diff --git a/debug.py b/debug.py new file mode 100644 index 0000000..0e25185 --- /dev/null +++ b/debug.py @@ -0,0 +1,13 @@ +def lone_sum(a, b, c): + if a == b and a == c and b == c: + return 0 + elif a == c: + return b + elif b == c: + return a + if a>=b: + return c + else: + return a+b+c +print("lone_sum of 10, 10, 10 should be 0: " + str(lone_sum(10, 10, 10))) +