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.
iterable[i] != iterable[i++] is the problem with i++ here, iterable[i++] is equivalent to iterable[i];i++;
Therefore, iterable[i] != iterable[i++] is equivalent to iterable[i]! = iterable[i]; i++
You can modify the code to iterable[i] != iterable[++i]; at the same time, pay attention to whether i is out of bounds
Hi!
You're not doing list comprehension correctly.
See official docs: https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions
This comment is hidden because it contains spoiler information about the solution
probably a 7?
nice
Yeah, I can relate..
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ah, I see. I didn't read the description carefully.
This comment is hidden because it contains spoiler information about the solution
this test specifies an ordered sequence, there is no order to a set, a set is just a jumble of unique values.
edit: I am using Python, and am assuming the rules of Python sets.
Your issue stems from your use of the method
result.index()
, which does not do what you think it's doing. If you need further help, please visit the Discord server and ask there.This comment is hidden because it contains spoiler information about the solution
agree, but to be honest this should be lowered to 7 or 8 kyu. :D nice task to get easy points :D
Loading more items...