What I want is to add +1 to the range so it prints different input(b). Am I doing it wrong or what is the problem?

The output should make a frame of + around the inputed words, but instead of that it does this:

```
Number of words: 5
Word: a
Word: aa
Word: aaa
Word: aaaa
Word: aaaaa
+++++++++
+ a +
+ a +
+ a +
+ a +
+ a +
+++++++++

```

```
a=int(input("Number of words: "))
list=[]
z=0

for x in range(a):
    b=input("Word: ")
    list.append(b)
c=(max(list, key=len))
d=len(c)

print("++" + "+"*d + "++")

for y in range(a):
    print("+"+" "+b[z]+" "+"+")
    z+=1

print("++" + "+"*d + "++")

```