Replace empty list with list (eg. replace empty list with [A,B,C] )

@Macchi I don’t think that worked as you expected. Look at the values of your sublists. They’re just being repeated.

Here’s a simple python code that will do the trick:

output = []

for a in IN[0]:
	if len(a) == 0:
		output.append(IN[1])
	else:
		output.append(a)
		
OUT = output

8 Likes