Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python loops

def take_inputs2(): 
    stop_word = 'stop' 
    data = None 
    inputs = [] 
    while data != stop_word: 
        data = raw_input('please enter something') 
        inputs.append(data) 
    print inputs
Source by www.quora.com #
 
PREVIOUS NEXT
Tagged: #python #loops
ADD COMMENT
Topic
Name
5+2 =