Answers for "python inout command for multiline line"

2

multiple line input python

lines = []
while True:
    line = input()
    if line:
        lines.append(line)
    else:
        break
text = '\n'.join(lines)
Posted by: Guest on February-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language