This is great, you are 50% of the way there. This step is difficult, a few people have gotten stuck exactly here. I think the instructions need a revision.
This is good, but you need to return a function, you can’t have return in the loop like this or it will end the function the first time the loop hits return.
You need to combine these two lines and change the for loop into a comprehension:
https://www.w3schools.com/python/python_lists_comprehension.asp
Structure it like this:
return (getattr() list comprehension)
I hope this helps. This might be too much of a clue but people do seem to be getting stuck on this step.