break out of a while loop : Break : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » Break »

 

break out of a while loop


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



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Statement
» Break