You're building a tiny search index for a list of sentences. Sentences are numbered from 1.
Write word_index(sentences). It returns a dictionary of word → list of sentence numbers that contain it.
Once your code passes every test, a reference solution shows up here so you can compare it with yours.