Add empty values in between each element in a list

I have a list of numbers.I want to add three empty values in between each elements in the list.can anybody help me with this using python code.Below i have attached a code which i wrote…obviously its creating an infinite loop.


Use append instead of insert. It’ll be waaaaay easier. For each item in your list just append the item and three blanks.

1 Like

thanks its working

An OOTB approach…

4 Likes