def take_inputs2(): stop_word = 'stop' data = None inputs = [] while data != stop_word: data = raw_input('please enter something') inputs.append(data) print inputs