taking multiple inputs in one line as a list in python code example
Example: multiple line input python
lines = []
while True:
line = input()
if line:
lines.append(line)
else:
break
text = '\n'.join(lines)
lines = []
while True:
line = input()
if line:
lines.append(line)
else:
break
text = '\n'.join(lines)