Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,9 @@ def dumb_calculator(arg1:int, arg2:int)-> float: #it's import to specify the ret
|
|
18 |
arg2 (int): the second argument
|
19 |
"""
|
20 |
import numpy as np
|
21 |
-
if
|
22 |
return f"All values are equal to 0. The results is {0}."
|
23 |
-
elif
|
24 |
return f"Both values are different. We multiply. The result is {arg1 * arg2}."
|
25 |
else:
|
26 |
return f"One of the values is 0. We square the sum of {arg1} and {arg2}. The result is {np.sqrt(arg1 + arg2)}."
|
|
|
18 |
arg2 (int): the second argument
|
19 |
"""
|
20 |
import numpy as np
|
21 |
+
if arg1 == 0 and arg2 == 0:
|
22 |
return f"All values are equal to 0. The results is {0}."
|
23 |
+
elif arg1 != 0 and arg2 != 0:
|
24 |
return f"Both values are different. We multiply. The result is {arg1 * arg2}."
|
25 |
else:
|
26 |
return f"One of the values is 0. We square the sum of {arg1} and {arg2}. The result is {np.sqrt(arg1 + arg2)}."
|