I have a list that looks like this:
lst = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
I'd like to generate a filtered list that looks like this:
filtered_lst = [2, 6, 7, 9, 10, 13]
Does Python provide a convention for custom slicing. Something such as:
lst[1, 5, 6, 8, 9, 12] # slice a list by index