how to take two inputs in one line in python? code example
Example 1: multiple inputs in python
# Reads two numbers from input and typecasts them to int using
# map function
x, y = map(int, input().split())
Example 2: multiple line input python
lines = []
while True:
line = input()
if line:
lines.append(line)
else:
break
text = '\n'.join(lines)