Sample input 1:
1 10
100 200
201 210
900 1000
Sample input 2:
4 49
2 59
So I don't know how many lines the input would be, and I want to organize the input into a 2d array. The lines are submitted all at once (no multiple input()
).
Edit: Sorry I'm terrible with I/O. Here's what I want:
nums = []
for i in range(0,endofinput):
nums.append(list(map(int, input().split())))
print(nums)
Problem is, I don't know how many inputs there will be. I don't have control over the input, so I can't just make a while loop to detect when the next input is "". Is there possibly a way to know how many lines of input I will be getting?