Odd_Indices_Code_Challenge! Need HELP!

CodeChallenge

Regarding the ODD INDICES CODE CHALLENGE:
I used a different method other than the official solution and got the right answer. There were no errors shown in the terminal. But the check answer key says ‘index out of range,’
IDK what is wrong with my code.
NEED HELLLLPPPPP!! THX !!!

Here is my solution:

Say I have a list like my_list = ['a', 'b', 'c']. What happens when I use my_list[5]?

It’s not a valid index (out of range) so an exception is thrown. Have a close look at the values of x you’re using to index your list, lst. If unsure use print. If they’re invalid you’ll get exceptions that under most circumstances would then stop the running script.