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.
'looks like you've solved it'
This is awesome!
Because your code did not pass the test? ;-)
My output the function even shows up in console as a print from the return with the correct digit :)
WORKS IN IDE but not online?
Py-3.6.3
STDERR -->
Traceback:
in
AttributeError: 'list' object has no attribute 'describe'
def stray(arr):
i=0
while i <= len(arr):
if arr.count(arr[i]) < 2:
return arr[i]
else:
i+=1
return "No odds"
test = [1,2,2,2,2,2]
print(str(stray(test)))
Can someone please help me as to why it's not passing the test? I have it set up outputting the correct data?