Ad
  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    Anyone had this problem?

    Unexpected exception raised.
    Traceback (most recent call last):
    File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 112, in wrapper
    func()
    File "/workspace/default/tests.py", line 10, in basic_test_cases
    test.assert_approx_equals(find_average([1, 2]), 1.5, margin=1e-3, message="Failed for [1, 2]")
    File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 85, in assert_approx_equals
    div = max(abs(actual), abs(expected), 1)
    ^^^^^^^^^^^
    TypeError: bad operand type for abs(): 'NoneType'