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.
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.