Text=input("Enter a word: ")
length=len(Text)
for row in range(length):
for col in range(row+1):
print(Text[col],end=" ")
print()
This is the result when I run this program and entered my name when the program asks to enter the name.
You can run this program online here also.