Skip to content

Instantly share code, notes, and snippets.

@darjeeling darjeeling/
Created Nov 16, 2016

What would you like to do?
from operator import getitem
from itertools import izip
a = range(1,10)
b = [a] * 10
for index, items in enumerate(izip(b, b[1:])):
first_item = getitem(items[0], 0)
second_item = getitem(item[0], 0 )
if not cmp(first_item, second_item):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.