Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
3 added 40 characters in body
source | link

Python 2, 131 100100 84 bytes

My first answer on Code Golf!

-47 bytes overall thanks to @SriotchilismO'Zaic

a,b=[],len(x)
for i in range(2*b-1):
 if b<=ii<b:a+=x[i]
 else:a=a[:-1];print''.join(a)1]
 else:a+=x[i];print''print''.join(a)

Try it online!Try it online!

Python 2, 131 100 bytes

My first answer on Code Golf!

a,b=[],len(x)
for i in range(2*b-1):
 if b<=i:a=a[:-1];print''.join(a)
 else:a+=x[i];print''.join(a)

Try it online!

Python 2, 131 100 84 bytes

My first answer on Code Golf!

-47 bytes overall thanks to @SriotchilismO'Zaic

a,b=[],len(x)
for i in range(2*b-1):
 if i<b:a+=x[i]
 else:a=a[:-1]
 print''.join(a)

Try it online!

2 deleted 62 characters in body
source | link

Python 2, 131131 100 bytes

My first answer on Code Golf!

a,c=[]b=[],1len(x)
for i in range(0,2*len(x)2*b-1):
 if len(x)==c-1b<=i:
	a=a[a=a[:-1]
	print ''1];print''.join(a)
 else:
	a.append(x[i])
	print ''a+=x[i];print''.join(a)
	c+=1

Try it online!Try it online!

Python 2, 131 bytes

My first answer on Code Golf!

a,c=[],1
for i in range(0,2*len(x)-1):
 if len(x)==c-1:
	a=a[:-1]
	print ''.join(a)
 else:
	a.append(x[i])
	print ''.join(a)
	c+=1

Try it online!

Python 2, 131 100 bytes

My first answer on Code Golf!

a,b=[],len(x)
for i in range(2*b-1):
 if b<=i:a=a[:-1];print''.join(a)
 else:a+=x[i];print''.join(a)

Try it online!

1
source | link

Python 2, 131 bytes

My first answer on Code Golf!

a,c=[],1
for i in range(0,2*len(x)-1):
 if len(x)==c-1:
	a=a[:-1]
	print ''.join(a)
 else:
	a.append(x[i])
	print ''.join(a)
	c+=1

Try it online!