Skip to content

Commit ef446be

Browse files
authored
Merge pull request #3 from code4policy/calculator
Calculator pushed
2 parents f17ddaa + 76f46cc commit ef446be

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

calculator.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
def multiply(a,b):
2-
return a * b
3-
4-
def add(a,b):
5-
return a+b
6-
7-
def subtract(a,b):
8-
return a-b
9-
10-
def divide(a,b):
11-
return a/b
12-
13-
14-
print("I'm going use the calculator functions to multiply 5 and 6")
15-
x = multiply(5,6)
16-
print(x)
1+
def add(a, b):
2+
return a + b
3+
4+
def subtract(a, b):
5+
return a - b
6+
7+
def multiply(a, b):
8+
return a * b
9+
10+
def divide(a, b):
11+
return a / b
12+
13+
print("I'm going use the calculator functions to divide 30 by 6")
14+
x = divide(30,6)
15+
print(x)

0 commit comments

Comments
 (0)