The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Expand a list by adding slots between each index

TODO: Pull subtitle into page object code_start_default_section code_end_default_section

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Expand a list by adding slots between each index

-- code/
-- python

my_list = [1, 2, 3, 4]
slot = 0

while(slot <= len(my_list)):
	print(my_list)
	my_list.insert(slot, '.')
	slot += 2

print(my_list)

-- /code

-- p

Output:

-- code/

[1, 2, 3, 4]
['.', 1, 2, 3, 4]
['.', 1, '.', 2, 3, 4]
['.', 1, '.', 2, '.', 3, 4]
['.', 1, '.', 2, '.', 3, '.', 4]
['.', 1, '.', 2, '.', 3, '.', 4, '.']

-- /code


-- categories
-- Miscellaneous

-- metadata
-- date: 2022-04-06 17:58:18
-- id: 27rugklb
-- status: scratch
-- type: post
-- SCRUBBED_NEO: false
-- site: aws