while True: word = raw_input('Please enter a word: ') if not word: break print 'The word was ' + word