I want to create a Python program which takes in multiple lines of user input. For example:
This is a multilined inp
sys.stdin.read() can be used to take multiline input from user. For example
>>> import sys >>> data = sys.stdin.read() line one line two line three <> >>> for line in data.split(sep='\n'): print(line) o/p:line one line two line three