Last Test error in arithmetic formatter

Tell us what’s happening:
Hello, I tried to solve the arithmetic formatter, but my code fails in the last test. I can’t figure out why it fails, when I test it in Visual Studio code it works perfectly. Can someone help me pls? :smile:

Your code so far

https://replit.com/@DiegoSoler2/boilerplate-arithmetic-formatter#arithmetic_arranger.py

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36 OPR/84.0.4316.50

Challenge: Arithmetic Formatter

Link to the challenge:

    #add numbers
    sum = ''
    if operator == '+':
      sum = str(int(firstN) + int(secondN))
    elif operator == '-':
      sum = str(int(firstN) + int (secondN))

This is the problem.

When the operator is subtraction… You added? Woops

1 Like

LOOL. i didn’t see it. mb JAJAJAJAAJAJAJA!
Love you so much!!!. :heart:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.