Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
If it was >= then v could take the v = 0 value in the condition and then you would indeed have a division by 0. Without the = sign, the condition goes to the else part and no division by zero is performed.
Wouldn't you encounter an error if n was out of range before you get to the else part?
Annoying kata due to poorly worded instructions.
Ah oops I missed that, thanks for answering :)
If you look at the name of the function one is
reverseseq
and the other isreverse_seq
; this is why they are grouped separately - from looking at the comments the function name was changed to be more Pythonic at some point in the past. I wouldn't worry too much about it.Why is this listed as a separate/different solution from the one with most "Best Practices" votes, when they are 100% identical?