1j="ramkumar"
2for i in range(len(j)):
3 for g in range(0,i+1):
4 print(j[g],end=' ')
5 print('')
6# end='' meaning (print the next answer , near the previous answer in same line)
7#answer 1 2 3 4 5 6 like this in same row or same line(in horizontal)
8
9
10
11name="ramkumar"
12for i in range(len(name)) :
13 print(name[0:i+1])