Exercise 18 TF-IDF Advanced

I’m getting an error when submitting code to test, even if running is working and getting a good result, at least in my few trials with different texts.


The error message is:

The answer is not correct - Test cases: 0 / 2

  File "/usr/local/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/usr/local/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/usr/local/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/app/test/test_main.py", line 34, in test_answer_two
    main(text2)
  File "/app/tmc/utils.py", line 10, in fail
    raise AssertionError(err)

This message gives me no hint on the possible issue.

By reading several posts with this error it should be something related with the format of some array or possibly the final result tuple. I am generating a tuple containing two integer values.

What is the correct result format?