def getNextLinkText(hypertextFiles, nextIndex):
 nextFileName = 'contents.html'
 if (nextIndex < len(hypertextFiles)):
  nextFileName = hypertextFiles[nextIndex]
 return ('<a href="%s">Next</a>' % nextFileName)

def getNextLinkText ( hypertextFiles , nextIndex ) : nextFileName = 'contents.html' if ( nextIndex < len ( hypertextFiles ) ) : nextFileName = hypertextFiles [ nextIndex ] return ( '<a href="%s">Next</a>' % nextFileName )
get the next link text .