From 7cf6416e811720cd9d7278539851da0f15deadf1 Mon Sep 17 00:00:00 2001 From: mustafa20019 <50338270+mustafa20019@users.noreply.github.com> Date: Mon, 20 May 2019 16:38:38 -0700 Subject: [PATCH] here is the correct code --- code for debug.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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))