Skip to content

Commit cede375

Browse files
authored
Merge pull request #1 from code4policy/calculator
Added 4 functions, called function & print results in file
2 parents 1053f58 + 095330e commit cede375

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

606 Bytes
Binary file not shown.
14 KB
Binary file not shown.

calculator.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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)

0 commit comments

Comments
 (0)