Mega Code Archive

 
Categories / Python Tutorial / Statement
 

Break out of a while loop

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