SOLVED:
" File “/usr/lib/python3.8/unittest/case.py”, line 943, in assertAlmostEqual
diff = abs(first - second)
TypeError: unsupported operand type(s) for -: ‘dict’ and ‘dict’"
this is the message I get I can’t figure out what I’ve done wrong or what to change. When I run the function with the test lists in Jupyter notebooks it comes out correct, but when I run it in the repl.it I get the error and the results are different as well. any ideas?
The values within the dictionairy are supposed to be lists, but you make tuples.
Replace the round brackets with list-brackets. Also instead of “std” you have to write “standard deviation”.
After changing those, code runs without errors for me.