Spaces:
Sleeping
Sleeping
issues with pow
Browse files
app.py
CHANGED
|
@@ -32,8 +32,8 @@ def basic_calculator(num1:float, num2:float, act:str)-> float: #it's import to s
|
|
| 32 |
elif act == '/' or act == 'div' or act == 'divide':
|
| 33 |
answer = num1 / num2
|
| 34 |
action = '/'
|
| 35 |
-
elif act == '^' or act == 'power' or act == 'exponentiation' or act == 'pow':
|
| 36 |
-
answer =
|
| 37 |
action = '^'
|
| 38 |
else:
|
| 39 |
return f"unsupported action type: {action}"
|
|
|
|
| 32 |
elif act == '/' or act == 'div' or act == 'divide':
|
| 33 |
answer = num1 / num2
|
| 34 |
action = '/'
|
| 35 |
+
elif act == '^' or act == '**' or act == 'power' or act == 'exponentiation' or act == 'pow':
|
| 36 |
+
answer = num1 ** num2
|
| 37 |
action = '^'
|
| 38 |
else:
|
| 39 |
return f"unsupported action type: {action}"
|