Ad
  • Default User Avatar

    Please ignore this solution--when refactoring I forgot to remove let mut final_string = String::new();

  • Default User Avatar

    Thank you.

  • Default User Avatar

    The tests for my solution pass except for exit... curious if this is an issue with the test (code in python):

    Traceback (most recent call last):
    File "main.py", line 19, in
    test.assert_approx_equals(Vector(examples[0]).magnitude, 3.741, 0.001)
    File "/runner/frameworks/python/cw-2.py", line 84, in assert_approx_equals
    div = max(abs(actual), abs(expected), 1)
    TypeError: bad operand type for abs(): 'method'

  • Default User Avatar

    I didn't change anything- default was set to 3.8, but it ran correctly this time

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution