Does my code have to be very close to the results given by exercism. I keep getting errors in my code.
Exercism runs unit tests. Exercism doesn’t care how your code works. It only cares that it does work – there should be a specific function that has a certain behavior. Called with specific inputs, there is an expected output. That’s all.
If you are getting errors, you may have syntax issues.
If you are failing tests, you may have a logic bug.
If you want help with your code, please share your complete code and the test results. Please do not use screenshots. Copy paste test and use a codeblock.