We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7458e15 commit bde5935Copy full SHA for bde5935
Codes/calculator.py
@@ -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.
+def add(x, y):
+ return x + y
+ #Evaluates x + y and returns the INTEGER result back to the point where this function was called from.
4
5
def sub(a, b):
6
return a - b
7
8
-def mult(a, b):
9
- return a * b
+def mult(p, r):
+ return p * r
10
11
def div(a, b):
12
return a / b
13
14
-def remainder(a,b):
15
- return a % b
+def remainder(m,n):
+ return m % n
16
17
print(" ** CALCULATOR ** ")
18
print("Enter two numbers")
0 commit comments