Function to print the valid indices in the array
def printAns ( x , y , num ) : NEW_LINE INDENT print ( " Indices ▁ in ▁ array " , num , " : " , end = " ▁ " ) NEW_LINE for i in range ( x , y ) : NEW_LINE INDENT print ( i , end = " , ▁ " ) NEW_LINE DEDENT print ( y ) NEW_LINE DEDENT