creating a new list with subset of list using index in python?

A list: a = ['a', 'b', 'c', 3, 4, 'd', 6, 7, 8] I want a list using a subset of a using a[0:2],a[4], a[6:], tha...

Creating subset of a Set in Java?

I have a LinkedHashSet, i.e an ordered set. I'm trying to find a function to just return a subset of the set, i.e t...