Skip to content

Instantly share code, notes, and snippets.

@wallabra
Last active November 9, 2015 20:27
Show Gist options
  • Save wallabra/ab5d5e47b8d33b2a26d7 to your computer and use it in GitHub Desktop.
Save wallabra/ab5d5e47b8d33b2a26d7 to your computer and use it in GitHub Desktop.
Module that checks sequences in lists in Python
def checklisting(inputlist, repts):
result = []
temprs = []
for z in input1:
ic = 1;
ic2 = 0;
if ic2 > (len(inputlist) / repts):
print 'Did not found'
break
temprs.append(inputlist[ic + (ic2 * repts)])
if ic == repts:
ic = 1
ic2 += 1
result.append(temprs)
temprs = []
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment