Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Thank you.

  • Custom 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'

  • Custom User Avatar

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

  • Custom User Avatar

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