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.
Exactly what it says: 'int' object is not iterable.
If you do not understand the term
iterable
, do not create an issue on this kata, but educate yourself. I don't know if it's the correct language (you don't even mention), but try this: MDN on iterables.Closing.
Okay so, I wrote a solution and it passed all the test cases, but I get an error in the end saying:
Traceback:
in
in unique_in_order
TypeError: expected string or buffer
I'm not sure how to correct it since the test results indicate Time: 59ms Passed: 8 Failed: 0
Has anyone encountered this before?
I have a new problem
Test Results:
lets test it
should work with empty array (1 Passed, 0 Failed)
should work with one element (1 Passed, 0 Failed)
should reduce duplicates (5 Passed, 0 Failed)
and treat lowercase as different from uppercase (1 Passed, 0 Failed)
and work with int arrays
STDERR:
Traceback:
in
in unique_in_order
TypeError: 'int' object is not iterable
what is that meaning ?
ok i think i know whats wrong.
HI
The instruction says:
unique_in_order('AAAABBBCCDAABBB') == ['A', 'B', 'C', 'D', 'A', 'B']
unique_in_order('ABBCcAD') == ['A', 'B', 'C', 'c', 'A', 'D']
unique_in_order([1,2,2,3,3]) == [1,2,3]
shall be ok.
I made a function that gives ['A', 'B', 'C', 'D', 'A', 'B']
for unique_in_order('AAAABBBCCDAABBB')
but the test says :
Test Results:
✘ None should equal ['A', 'B', 'C', 'D', 'A', 'B']
what is the problem of this thing ?