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.
I've passed all the tests apart from the first edge case test. Any ideas?
Ooooh, I didn't realise it meant a list. Sorry about obvious spoilers. Thanks a lot for the help.
This comment is hidden because it contains spoiler information about the solution
I get this error from the testing code. I know my code is right but I cant complete the kata because of this.
Traceback (most recent call last):
File "main.py", line 17, in
test.expect(has_adjacents(sequence) == False, "Sequence contains two or more adjacent integers.")
File "/home/codewarrior/setup.py", line 3, in has_adjacents
for i in range(len(sequence) - 2):
TypeError: object of type 'int' has no len()