I have some comments for you:
list as a variable name
list is a keyword, which means that it represents something and should not be used casually as a variable name for any assignments...so change a variable name
2.. what you are looping over
When you do this, you are looping over the numbers 0 to the length of the split text (I'm ignoring your use of
list here, which has been addressed in 1..). In reality, you are trying to compare each word in
word with each word in
text and seeing if they are the same, which means you are trying to loop over the words in "list" (again, please change your variable name!) instead of looping over numbers 0 to
3.. doing list(i)
I am not sure why you did this. By doing this, I imagine you to be having this conversation with Python:
You: Hey Python, I have a request.
You: For each number from 0 to length of my variable, can you check if each number is equal to each word in
word after it has been converted into a
list type? Like check if  is equal to
word,  is equal to
Python: ??? *(&$
word is a string input, so in fact there is no need for
i to be converted to a list type.
Additionally, for the next bit, you have missed out something that is a good habit to practise. The proper way to do it would be to first create a new empty list before your
for loop where you can
"*" * len(word), so that you're not modifying the original lists/strings etc but creating something new entirely, making it easier to check for mistakes etc.
4.. what you
If you take up my suggestion and create a new empty list stored under a new variable name before your
for loop, make sure you
return the correct list!
Hope this helps