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.
Still stuck, here is what I have so far. I tried putting the entire code into a Try Except - but it still didn't show me the test case that was failing. Passing all the basic tested up to #18
def rank(st=9999, we=9999, n=9999):
try:
print(st,we,n)
st = st.split(',')
I'm trying to solve this with python and I am getting the following:
STDERR
Traceback (most recent call last):
File "main.py", line 85, in
randomTests()
File "main.py", line 83, in randomTests
Test.assert_equals(rank(st, we, k), rankSol(st, we, k))
File "main.py", line 52, in rankSol
res.append([f[i], we[i] * scoreSol(f[i])])
IndexError: list index out of range
I know list index out of range is usually from calling an out of range index value on a list, like lista = [0, 1, 2] and then I try and run lista[3] but I am not really sure where this could be happening in my code. Any thoughts are appreciated!
Thanks!