Build an Arithmetic Formatter Project - Dev Tools Diff not showing in Firefox

Tell us what’s happening:

The dev tools in Firefox is not displaying the diff output (140.0.2)

I tried disabling VPN and all extensions but same result. I’ve noticed this for a while.

It works ok for me in Chrome.

I’m curious to hear from other people if they are experiencing the same thing.

Your code so far

def arithmetic_arranger(problems, show_answers=True):
    operator=[]
    operand=[]
    upper_nums=[]
    bottom_nums=[]
    final_answer=[]
    result=[]
    str_upper=''
    str_bottom=''
    str_dash=' '
    str_result=''
    if len(problems)>4:
        return 'Error: Too many problems.'
    
    for exp in problems:
        element=exp.split()
        operator.append(element[1])
        operand.append(element[0])
        operand.append(element[2])
    for sign in operator:
        if sign in ['/','*']:
            return "Error: Operator must be '+' or '-'."
    for nums in operand:
        if not nums.isdigit():
            return 'Error: Numbers must only contain digits.'
        if len(nums)>4:
            return 'Error: Numbers cannot be more than four digits.'
    
    for i in range(0,len(operand),2):
        upper_nums.append(operand[i])
    for i in range(1,len(operand),2):
        bottom_nums.append(operand[i])
    
    for i in range(len(upper_nums)):
        if len(upper_nums[i]) > len(bottom_nums[i]):
            str_upper+=''.join('   '+upper_nums[i])
            str_bottom+=''.join(''+ ' ' + operator[i] +' '+' '*(len(upper_nums[i])-len(bottom_nums[i])) + bottom_nums[i])
            str_dash+=' '+(len(upper_nums[i])+2)*'-'
        elif len(upper_nums[i]) < len(bottom_nums[i]):
            str_bottom+=''.join(' '+ operator[i]+' '+bottom_nums[i])
            str_upper+=''.join('   '+' '*(len(bottom_nums[i])-len(upper_nums[i])) + upper_nums[i])
            str_dash+=' '+(len(bottom_nums[i])+2)*'-'
        else:
             str_bottom+=''.join(' '+operator[i]+' '+bottom_nums[i])
             str_upper+=''.join('   '+ upper_nums[i])
             str_dash+=' '+(len(upper_nums[i])+2)*'-'
         
        str_bottom+='   '
        str_upper+='   ' 
        str_dash+='   '

    for i in range(len(operator)) :
        if operator[i]=='-' :
            result.append(str(int(upper_nums[i])-int(bottom_nums[i])))
        else:
            result.append(str(int(upper_nums[i])+int(bottom_nums[i])))
    for j in range(len(result)):
        if len(bottom_nums[j])<len(upper_nums[j]) and len(result[j])<len(upper_nums[j]):
            str_result+= (len(upper_nums[j])-len(rsult[j])+2)*' '+''.join(result[j])
        elif len(upper_nums[j])<len(bottom_nums[j]) and len(result[j])<len(bottom_nums[j]):
            str_result+= (len(bottom_nums[j])-len(rsult[j])+2)*' '+''.join(result[j])
        else:
            str_result+= 3*' '+''.join(result[j])
        str_result+='   '
    str_upper+='\n'
    str_bottom+='\n' 
    str_dash+='\n' 
    str_result+='\n'  

    
    final_answer = str_upper + str_bottom + str_dash + str_result
    if show_answers:
        return final_answer
print(f'\n{arithmetic_arranger(["3801 - 2", "123 + 49"])}')

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0

Challenge Information:

Build an Arithmetic Formatter Project - Build an Arithmetic Formatter Project

Firefox 140.0.2 output:

Source map error: request failed with status 404
Resource URL: https://www.freecodecamp.org/learn/scientific-computing-with-python/build-an-arithmetic-formatter-project/%3Canonymous%20code%3E
Source Map URL: installHook.js.map

Cookie warnings 3
The value of the attribute “expires” for the cookie “_ga_SF1BGBDCNS” has been overwritten. build-an-arithmetic-formatter-project
The value of the attribute “expires” for the cookie “_ga_SF1BGBDCNS” has been overwritten. build-an-arithmetic-formatter-project
The value of the attribute “expires” for the cookie “_ga_SF1BGBDCNS” has been overwritten. build-an-arithmetic-formatter-project
progress updates processed where possible failed-updates-epic.js:92:29
Source map error: can't access property "sources", map is undefined
Resource URL: https://www.freecodecamp.org/learn/scientific-computing-with-python/build-an-arithmetic-formatter-project/%3Canonymous%20code%3E
Source Map URL: react_devtools_backend_compact.js.map

The resource at “https://www.freecodecamp.org/static/Lato-Regular-77ca2742388f408c3be7d0ec3e7dc392.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. build-an-arithmetic-formatter-project
The resource at “https://www.freecodecamp.org/static/Lato-Light-91308c0216b40aad16036f1394b98237.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. build-an-arithmetic-formatter-project
The resource at “https://www.freecodecamp.org/static/Lato-Bold-ba3a83adcb94357fc42f762985e4d3df.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. build-an-arithmetic-formatter-project
The resource at “https://www.freecodecamp.org/static/Hack-ZeroSlash-Regular-f67447de5dc6604f538786bd55ac6019.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. build-an-arithmetic-formatter-project
The resource at “https://www.freecodecamp.org/static/Hack-ZeroSlash-Bold-c8ea19a8461596cf1a6a2ad08bebcf8e.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. build-an-arithmetic-formatter-project
The resource at “https://www.freecodecamp.org/static/Hack-ZeroSlash-Italic-678bc16b550480d5a3c5c76dbf8c5fb9.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. build-an-arithmetic-formatter-project
<empty string> python-test-evaluator.js:2:6196
   3801      123   python-test-evaluator.js:2:6196
 -    2    +  49   python-test-evaluator.js:2:6196
  ------    -----   python-test-evaluator.js:2:6196
   3799      172   python-test-evaluator.js:2:6196
<empty string> 2 python-test-evaluator.js:2:6196
   3801      123   python-test-evaluator.js:2:6196
 -    2    +  49   python-test-evaluator.js:2:6196
  ------    -----   python-test-evaluator.js:2:6196
   3799      172   python-test-evaluator.js:2:6196
<empty string> 2 python-test-evaluator.js:2:6196
   3801      123   python-test-evaluator.js:2:6196
 -    2    +  49   python-test-evaluator.js:2:6196
  ------    -----   python-test-evaluator.js:2:6196
   3799      172   python-test-evaluator.js:2:6196
<empty string> 2 python-test-evaluator.js:2:6196
   3801      123   python-test-evaluator.js:2:6196
 -    2    +  49   python-test-evaluator.js:2:6196
  ------    -----   python-test-evaluator.js:2:6196
   3799      172   python-test-evaluator.js:2:6196
<empty string> 2 python-test-evaluator.js:2:6196
   3801      123   python-test-evaluator.js:2:6196
 -    2    +  49   python-test-evaluator.js:2:6196
  ------    -----   python-test-evaluator.js:2:6196
   3799      172   python-test-evaluator.js:2:6196
<empty string> 2 python-test-evaluator.js:2:6196
   3801      123   python-test-evaluator.js:2:6196
 -    2    +  49   python-test-evaluator.js:2:6196
  ------    -----   python-test-evaluator.js:2:6196
   3799      172   python-test-evaluator.js:2:6196
<empty string> 2 python-test-evaluator.js:2:6196
   3801      123   python-test-evaluator.js:2:6196
 -    2    +  49   python-test-evaluator.js:2:6196
  ------    -----   python-test-evaluator.js:2:6196
   3799      172   python-test-evaluator.js:2:6196
<empty string> 2 python-test-evaluator.js:2:6196
   3801      123   python-test-evaluator.js:2:6196
 -    2    +  49   python-test-evaluator.js:2:6196
  ------    -----   python-test-evaluator.js:2:6196
   3799      172   python-test-evaluator.js:2:6196
<empty string> 2 python-test-evaluator.js:2:6196
   3801      123   python-test-evaluator.js:2:6196
 -    2    +  49   python-test-evaluator.js:2:6196
  ------    -----   python-test-evaluator.js:2:6196
   3799      172   python-test-evaluator.js:2:6196
<empty string> 2 python-test-evaluator.js:2:6196
   3801      123   python-test-evaluator.js:2:6196
 -    2    +  49   python-test-evaluator.js:2:6196
  ------    -----   python-test-evaluator.js:2:6196
   3799      172   python-test-evaluator.js:2:6196
<empty string>

Chrome works ok, so I’d like to know if it’s specific to Firefox or specific to me.