Skip to content

Instantly share code, notes, and snippets.

@darjeeling darjeeling/check.py
Created Nov 16, 2016

Embed
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):
break
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.