diff --git a/code for debug.py b/code for debug.py index 534e4f4..24c7ccc 100644 --- a/code for debug.py +++ b/code for debug.py @@ -1,11 +1,12 @@ def lone_sum(a, b, c): - if a >= b: + if a == b and a == c and b == c: + return 0 + elif a >= b: return c - elif a == c: - return b elif b == c: return a - elif a == b and a == c and b == c: - return 0 + elif a == c: + return c else: return a+b+c +print(lone_sum(1,1,2))