OmerFarkash commited on
Commit
deb1bfc
·
verified ·
1 Parent(s): 38ac395

fix wrong if statement in multiply case

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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':