a simple python calculator with the four primary processes/functions. can only support two numbers
#simple calculator witha all functions
function = 'add'
number1 = 2
number2 = 8
if function == 'add':
sum = number1 + number2
print(sum)
elif function == 'substract' or 'minus':
diff = number1 - number2
print(diff)
elif function == 'multiply':
product = number1 * number2
print(product)
elif function =='divide':
answer = number1 / number2
print(answer)
else:
print('No related function')
import codewars_test as test
# TODO Write tests
import solution # or from solution import example
# test.assert_equals(actual, expected, [optional] message)
@test.describe("Example")
def test_group():
@test.it("test case")
def test_case():
test.assert_equals(1 + 1, 2)