YanaS commited on
Commit
15da618
·
verified ·
1 Parent(s): caa47e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 str(int(arg1) == 0) and str(int(arg2) == 0):
22
  return f"All values are equal to 0. The results is {0}."
23
- elif str(int(arg1) != 0) and str(int(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)}."
 
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)}."