We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1021f5e commit fb37bc5Copy full SHA for fb37bc5
1 file changed
basic_mathematical_operations.py
@@ -0,0 +1,10 @@
1
+# https://www.codewars.com/kata/57356c55867b9b7a60000bd7
2
+def basic_op(operator, value1, value2):
3
+ if operator == '+':
4
+ return value1 + value2
5
+ elif operator == '-':
6
+ return value1 - value2
7
+ elif operator == '*':
8
+ return value1 * value2
9
+ elif operator == '/':
10
+ return value1 / value2
0 commit comments