Here is the error I m getting 

```
     word[i] += len(words)
 IndexError: list index out of range

```

and here is the code 

```
word=[]
i=1
with open("poem.txt", "r") as f:
    for line in f:
        words=line.split()
        word[i] += len(words)
        i += 1

for i in range(1,20):
    print("For the line "+i+" we have "+word[i]+" words")

```

What I want to have as an output is something like 

For the line 1 we have 10 words

For the line 2 we have 20 words

and so on ...