Hello all, I’m trying to replace the empty lists with list

eg.

index 1 [a,b,c]

index 2 [a,b,c]

index 3 empty list

index 4 [a,b,c]

index 5 empty list

-I want to replace the empty list with a list [A,B,C]

index 1 [a,b,c]

index 2 [a,b,c]

index 3 [A,B,C]

index 4 [a,b,c]

index 5 [A,B,C]

I’ve tested several methods but none of them work perfectly. Some of them work with a single value, some of them can only replace item at one index. Please see the snapshot for detail.

I really hope someone can give me some advice. Thank you!