I'm a little new to python and I'm trying to fill raw_input with a formatted string yet my output never changes the "\n" character and always returns null. Is there a way to pump fully formatted string/text through an empty variable?
text = ""
stop = "|"
while True:
text_1 = raw_input()
text += "%s" % (text1)
if text_1 != stop:
pass
else:
break
print text
output:
hello world
how are you
|
hello worldhow are you|
need: hello world how are you |