Thank you. This was relevant: "Some tests are susceptible to mutation of input parameters and fail if solution changes input objects passed to it"
Read this, see if it helps.
I obtain the correct solution on my machine with VisualStudio (Python 3.8.3) but when I ran the function on codewars, the results are different. Can anyone help? Thank you
Loading collection data...
Thank you. This was relevant: "Some tests are susceptible to mutation of input parameters and fail if solution changes input objects passed to it"
Read this, see if it helps.
I obtain the correct solution on my machine with VisualStudio (Python 3.8.3) but when I ran the function on codewars, the results are different. Can anyone help? Thank you