Last active
November 9, 2015 20:27
-
-
Save wallabra/ab5d5e47b8d33b2a26d7 to your computer and use it in GitHub Desktop.
Module that checks sequences in lists in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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