Spaces:
Sleeping
Sleeping
fix wrong if statement in multiply case
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def basic_calculator(num1:float, num2:float, act:str)-> float: #it's import to s
|
|
| 26 |
elif act == '-' or act == 'minus' or act == 'sub' or act == 'subtract' or act == 'substract':
|
| 27 |
answer = num1 - num2
|
| 28 |
action = '-'
|
| 29 |
-
elif act == '*' or act == 'mul' or act == 'multiply' or 'times':
|
| 30 |
answer = num1 * num2
|
| 31 |
action = '*'
|
| 32 |
elif act == '/' or act == 'div' or act == 'divide':
|
|
|
|
| 26 |
elif act == '-' or act == 'minus' or act == 'sub' or act == 'subtract' or act == 'substract':
|
| 27 |
answer = num1 - num2
|
| 28 |
action = '-'
|
| 29 |
+
elif act == '*' or act == 'mul' or act == 'multiply' or act == 'times':
|
| 30 |
answer = num1 * num2
|
| 31 |
action = '*'
|
| 32 |
elif act == '/' or act == 'div' or act == 'divide':
|