Ad
  • Custom User Avatar

    Thanks sooo much! After adding the == method, everything worked well!

  • Custom User Avatar

    I got the same problem.
    Make sure to implement the __eq__(equal) method correctly, the v1==v2 method.

  • Custom User Avatar

    I am stuck in this challenge. Would be really grateful if someone can direct me. Having these errors
    Expected: #<Vector:0x000056332da9c0c0 @coordinates=[1, 2, 3]>, instead got: #<Vector:0x000056332da9c1b0 @coordinates=[1, 2, 3]> from the creation test and
    Expected: #<Vector:0x000056332da92a98 @coordinates=[0, 0, 0]>, instead got: #<Vector:0x000056332da92b60 @coordinates=[0, 0, 0]>
    Expected: #<Vector:0x000056332da92598 @coordinates=[2, 4, 6]>, instead got: #<Vector:0x000056332da92688 @coordinates=[2, 4, 6]>
    from the addition & subtraction tests
    I know the objects id's does not match but I am creating a new object on both methods