''' Purpose: use polygot module to translate user-supplied text ''' # import needed modules import polyglot # local module supporting text translation # get the text txet = input( 'Enter text to be translated: ' ) print() # print it back out print( txet) print( '\n-----------------------------------------\n' ) # translate it text = polyglot.translate( txet ) # print translation print( text )