We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b7ff71 commit 85a7f8bCopy full SHA for 85a7f8b
0x01-python-if_else_loops_functions/102-magic_calculation.py
@@ -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