["python","input","multiline"]
How to get multiline input from the user

I want to write a program that gets multiple line input and work with it line by line. Why isn't there any function like raw_input in Python 3? input does not allow the user to put lines separated by newline (Enter). It prints back only the first line. Can it be stored in a variable or even read it to a list?
In Python 3.x the raw_input() of Python 2.x has been replaced by input() function. However in both the cases you cannot input multi-line strings, for that purpose you would need to get input from the user line by line and then .join() them using \n, or you can also take various lines and concatenate them using + operator separated by \n To get multi-line input from the user you can go like: no_of_lines = 5 lines = "" for i in xrange(no_of_lines): lines+=input()+"\n" print(lines) Or lines = [] while True: line = input() if line: lines.append(line) else: break text = '\n'.join(lines)