Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

multiple line input python

lines = []
while True:
    line = input()
    if line:
        lines.append(line)
    else:
        break
text = '
'.join(lines)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #line #input #python
ADD COMMENT
Topic
Name
5+2 =