raw_input will read one line of input only.
See answers to this question for a general overview of getting input from the command line.
If you want to use raw_input then a loop will read all your lines but you will need a way to break out, something like this.
while True: A = raw_input("Please input text here (Q to quit)") if len(A) == 1 and A[0].lower() == "q": break print A print len(A)
To collate multiple lines do something like this
data = [] while True: A = raw_input("Please input text here (Q to quit)") if len(A) == 1 and A[0].lower() == "q": break data.append(A) print data for A in data: print len(A)
Remember to enter a newline after pasting. Also, the raw_input prompt messages may not display correctly.
You could go crazy and manage the prompt. Expecting a zero length input means the user is trying to quit.
data = [] prompt = "Please input text (Q to quit):\n" while True: if data: A = raw_input() else: A = raw_input(prompt) while len(A) == 0: A = raw_input(prompt) if len(A) == 1 and A[0].lower() == "q": break data.append(A) for A in data: print "%s - %i" % (A, len(A))