def isInsideOtherLoops(loopIndex, loops):
 return isPathInsideLoops((loops[:loopIndex] + loops[(loopIndex + 1):]), loops[loopIndex])

def isInsideOtherLoops ( loopIndex , loops ) : return isPathInsideLoops ( ( loops [ : loopIndex ] + loops [ ( loopIndex + 1 ) : ] ) , loops [ loopIndex ] )
determine if a loop in a list is inside another loop in that list .