Light Mode
Dark Mode
Weird assert

I am confident in my code being correct, but I get an assertion error. I have manually counted the changes in direction for this assertion, and I'm pretty sure the answer should be 8.

assert changing_direction([6, 6, 6, 4, 1, 2, 5, 9, 7, 8, 5, 9, 4, 2, 6]) == 7 ... Fail

Please can this be fixed or explained? thanks

Created: Oct. 4, 2022, 10:33 a.m.
Updated: May 4, 2023, 6:10 a.m.
0
7
User avatar
pom_poko0