

So through lines 2-5 you are making the line the correct size to fit the characters of the name. Instead of directly printing this save the full line into the variable by appending the final + sign. Then in the later part of the program you can print line, print pipe name pipe, then print name again.
line = “+” for _ in name … line += “+”
print(line) print(“|”+name+“|”) print(line)
Does that make sense?
Absolute proof of the horseshoe model, I am at ±10, I both love and hate technology with avid passion.