# totalIndexSeq = ['0+234+6+', '++++++', '012++5678']
def longestSeqFinder(totalIndexSeq): positionCounter = 0 positionChecker = 0 tryList = [] longestSeqList = [] for y in totalIndexSeq: temp = y.split("+") tryList.append(temp) for i in tryList: longestSeq = (max(i, key = len)) longestSeqList.append(longestSeq)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)