Skip to content

Commit 034b8a9

Browse files
committed
Create 1001S02E03_calculator.py
1 parent 19e0fdd commit 034b8a9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
def add(a: object, b: object) -> object:
2+
"""
3+
4+
:rtype: object
5+
"""
6+
return a + b
7+
8+
a=3
9+
b=4
10+
print(add(a,b))
11+
12+
def subtract(c, d):
13+
return c - d
14+
15+
16+
def multiply(e, f):
17+
return e * f
18+
19+
20+
def divide(g, h):
21+
return g / h

0 commit comments

Comments
 (0)