def isLoopNumberEqual(betweenX, betweenXIndex, loopNumber):
 if (betweenXIndex >= len(betweenX)):
  return False
 return (betweenX[betweenXIndex].index == loopNumber)

def isLoopNumberEqual ( betweenX , betweenXIndex , loopNumber ) : if ( betweenXIndex >= len ( betweenX ) ) : return False return ( betweenX [ betweenXIndex ] . index == loopNumber )
determine if the loop number is equal .