Skip to content

Commit bde5935

Browse files
authored
Update calculator.py
1 parent 7458e15 commit bde5935

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Codes/calculator.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
def add(a, b):
2-
return a + b
3-
#Evaluates a + b and returns the INTEGER result back to the point where this function was called from.
1+
def add(x, y):
2+
return x + y
3+
#Evaluates x + y and returns the INTEGER result back to the point where this function was called from.
44

55
def sub(a, b):
66
return a - b
77

8-
def mult(a, b):
9-
return a * b
8+
def mult(p, r):
9+
return p * r
1010

1111
def div(a, b):
1212
return a / b
1313

14-
def remainder(a,b):
15-
return a % b
14+
def remainder(m,n):
15+
return m % n
1616

1717
print(" ** CALCULATOR ** ")
1818
print("Enter two numbers")

0 commit comments

Comments
 (0)