Skip to content

Commit bcedf1c

Browse files
authored
Create lone_sum.py
1 parent d26341b commit bcedf1c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Logic-2/lone_sum.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
def lone_sum(a, b, c):
2+
if a == b and b == c:
3+
return 0
4+
elif a == b:
5+
a,b = 0,0
6+
elif b == c:
7+
b,c = 0,0
8+
elif a == c:
9+
a,c = 0,0
10+
return a+b+c

0 commit comments

Comments
 (0)