-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcalculator_1.py
More file actions
51 lines (37 loc) · 749 Bytes
/
Copy pathcalculator_1.py
File metadata and controls
51 lines (37 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/python3
def add(a, b):
"""My addition function
Args:
a: first integer
b: second integer
Returns:
The return value. a + b
"""
return (a + b)
def sub(a, b):
"""My subtraction function
Args:
a: first integer
b: second integer
Returns:
The return value. a - b
"""
return (a - b)
def mul(a, b):
"""My multiplication function
Args:
a: first integer
b: second integer
Returns:
The return value. a * b
"""
return (a * b)
def div(a, b):
"""My division function
Args:
a: first integer
b: second integer
Returns:
The return value. a / b
"""
return int(a / b)