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 get the same error, however on a jupyter notebook i pass that case. Not sure why and how to print the input
edit: nevermind, just realized my mistake
ok thanks!!!
Your problem is in line 9.
list.index()
returns the first index of the item. With the large pyramid, the same number is repeated in the same line more than once.EDIT: Also, I notice that you do
copy = pyramid
to try and create a copy.However, this is only an assignment and doesn't actually create a copy of the list.
To make a shallow copy, you can do
copy = pyramid.copy()
orcopy = pyramid[:]
.To make a deep copy, the easiest way is to first
from copy import deepcopy
thencopy = deepcopy(pyramid)
.This comment is hidden because it contains spoiler information about the solution
thanks!
print the input so you can see it.
all tests seem to pass except the last...
the error i get is:
['a', 'i', 'j', 'p'] should equal []