def isPathInsideLoops(loops, path):
 for loop in loops:
  if isPathInsideLoop(loop, path):
   return True
 return False

def isPathInsideLoops ( loops , path ) : for loop in loops : if isPathInsideLoop ( loop , path ) : return True return False
determine if a path is inside another loop in a list .