Answers for "input multiple values in python with enter"

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

Code answers related to "input multiple values in python with enter"

Python Answers by Framework

Browse Popular Code Answers by Language