Ad
  • Custom User Avatar

    The arrays come in a random order, so your equation inputs may not be how you would expect.

    By your code, assuming that a, b, c are in order to the array. It would appear like this:

    Array: 5, 4, 3
    5^2 + 4^2 == 3^2 # this is not true, so it would return False
    

    Which would return False but expects True as it can be re-arranged into a different order which makes the equation true for a^2 + b^2 = c^2

  • Default User Avatar

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