Ad
  • Custom User Avatar

    omg, thank you very much)

  • Custom User Avatar

    omg, thank you very much)

  • Custom User Avatar

    you're returning a string instead of a number.

  • Custom User Avatar

    Python
    I have passed 5 tests and 0 failed, but error occurred:
    Traceback (most recent call last):
    File "main.py", line 17, in
    test.expect(abs(actual-val) < 1e-12, "Expected %s == %s, but got %s" % (key, val, actual))
    TypeError: unsupported operand type(s) for -: 'str' and 'int'
    Is the problem in tests?