C3_W1_A1 Exercise 08 Index Error

I’m having trouble with the last exercise and I cannot find where I went wrong…


Im getting list index out of range for this function but all other test cases for previous functions passed… any help would be appreciated

hi @ADITI_KANNAN

You loop is trying to access a index value that not exist in your list.

Basically, is iterating over the list length