Skip to main content
deleted 6 characters in body
Source Link

Python 2, 115137 114 bytes

def f(s,r='',l=-3):
 for c in s+'\0':
	if c.isalpha():l+=1
	else:r+=('Bl%st'%('e'*l))[:l+3*(l>=0)]+c;l=-3
 returnprint r

Try it online!Try it online!

Python 2, 115 bytes

def f(s,r='',l=-3):
 for c in s+'\0':
	if c.isalpha():l+=1
	else:r+=('Bl%st'%('e'*l))[:l+3*(l>=0)]+c;l=-3
 return r

Try it online!

Python 2, 137 114 bytes

def f(s,r='',l=-3):
 for c in s+'\0':
	if c.isalpha():l+=1
	else:r+=('Bl%st'%('e'*l))[:l+3*(l>=0)]+c;l=-3
 print r

Try it online!

deleted 3 characters in body
Source Link

Python 2, 117115 bytes

def f(s,r='',l=-3):
 for c in s+'\0':
	if c.isalpha():l+=1
	else:r+=('Bl%st'%('e'*l),'Blt'[)[:l]l+3*(l>=0)[l<0]+c;l=]+c;l=-3
 return r

Try it online!Try it online!

Python 2, 117 bytes

def f(s,r='',l=-3):
 for c in s+'\0':
	if c.isalpha():l+=1
	else:r+=('Bl%st'%('e'*l),'Blt'[:l])[l<0]+c;l=-3
 return r

Try it online!

Python 2, 115 bytes

def f(s,r='',l=-3):
 for c in s+'\0':
	if c.isalpha():l+=1
	else:r+=('Bl%st'%('e'*l))[:l+3*(l>=0)]+c;l=-3
 return r

Try it online!

deleted 3 characters in body
Source Link

Python 2, 119117 bytes

def f(s):
 r,l=''r='',0l=-3):
 for c in s+'\0':
	if c.isalpha():l+=1
	else:r+=('Bl'+'e'*'Bl%st'%(l-3'e'*l)+'t','Blt'[:l])[l<3]+c;l=0[l<0]+c;l=-3
 return r

Try it online!Try it online!

Python 2, 119 bytes

def f(s):
 r,l='',0
 for c in s+'\0':
	if c.isalpha():l+=1
	else:r+=('Bl'+'e'*(l-3)+'t','Blt'[:l])[l<3]+c;l=0
 return r

Try it online!

Python 2, 117 bytes

def f(s,r='',l=-3):
 for c in s+'\0':
	if c.isalpha():l+=1
	else:r+=('Bl%st'%('e'*l),'Blt'[:l])[l<0]+c;l=-3
 return r

Try it online!

deleted 9 characters in body
Source Link
Loading
added 19 characters in body
Source Link
Loading
Source Link
Loading