Skip to content

Odd Indices

Andrew Burke edited this page Apr 3, 2024 · 5 revisions
def print_indices(lst):
	for index in range(len(lst)):
		if index % 2 == 1:
			print(lst[index])
Clone this wiki locally