Skip to content

Commit 362fdef

Browse files
committed
Magic calculation
1 parent 2bed067 commit 362fdef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/python3
2+
def magic_calculation(a, b, c):
3+
if a < b:
4+
return c
5+
elif c > b:
6+
return a + b
7+
else:
8+
return a * b - c

0 commit comments

Comments
 (0)