That's a good start.
This will return one word - the first that starts with respective char. What if there are multiple words starting with the same char (it's unclear but do you see that the assertion expects a list, so probably you need to return all words starting with same char)?
You need to start with empty list and while iterating over the list of words, append words starting with the desired char. Alternatively, you can use list comprehension. Then your function should return that list.
As a side note, PEP8 recommends using str.startswith() method instead of index, like yoi do
This will return one word - the first that starts with respective char. What if there are multiple words starting with the same char (it's unclear but do you see that the assertion expects a list, so probably you need to return all words starting with same char)?
You need to start with empty list and while iterating over the list of words, append words starting with the desired char. Alternatively, you can use list comprehension. Then your function should return that list.
As a side note, PEP8 recommends using str.startswith() method instead of index, like yoi do
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs