When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!
I don’t understand what the directions are asking me to do. I don’t understand why I have to understand the length of 1st. It is also throwing me off that I can’t see the values of 1st and index. I don’t understand what it means by a “valid index”. Can someone help me to decipher this lesson?
Below is the correct code to the lesson in which I don’t understand.
I will also include the instructions:
Create a function named
double_index that has two parameters named
The function should double the value of the element at
lst and return the new list with the doubled value.
index is not a valid index, the function should return the original list.
After writing your function, un-comment the call to the function that we’ve provided for you to test your results.