Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
You can use the slice operataroperator like this:
l = [1,2,3,4,5] l2 = l[::2] # get subsequent 2nd item
You can use the slice operatar like this:
You can use the slice operator like this: