My bad. >.< It worked on python 3.9 in vscode without throwing any exceptions so I figured it was a kata issue. I shall be more vigilant next time.
That's a problem with your code, not a kata issue. next is raising StopIteration. When you fix your code, it'll work with both 3.6 and 3.8. Note your code will fail the last sample test tho.
next
StopIteration
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
My bad. >.< It worked on python 3.9 in vscode without throwing any exceptions so I figured it was a kata issue. I shall be more vigilant next time.
That's a problem with your code, not a kata issue.
next
is raisingStopIteration
. When you fix your code, it'll work with both 3.6 and 3.8. Note your code will fail the last sample test tho.This comment is hidden because it contains spoiler information about the solution