Skip to content

Commit a73ecc6

Browse files
authored
Merge branch 'main' into calculator
2 parents bba7875 + cede375 commit a73ecc6

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
@@ -13,3 +13,19 @@ def divide(a, b):
1313
print("I'm going use the calculator functions to divide 30 by 6")
1414
x = divide(30,6)
1515
print(x)
16+
def multiply(a,b):
17+
return a * b
18+
19+
def add(a,b):
20+
return a+b
21+
22+
def subtract(a,b):
23+
return a-b
24+
25+
def divide(a,b):
26+
return a/b
27+
28+
29+
print("I'm going use the calculator functions to multiply 5 and 6")
30+
x = multiply(5,6)
31+
print(x)

0 commit comments

Comments
 (0)