In the code below, it should be able to read the following input:
1
5 1
N = int(input())
for i in range(N):
L, G = [int(s) for s in input().split(" ")]
Instead, I get the following error message:
Traceback (most recent call last):
File "C:\Users\danie\PycharmProjects\googlecoding\main.py", line 32, in <module>
L, G = [int(s) for s in input().split(" ")]
File "C:\Users\danie\PycharmProjects\googlecoding\main.py", line 32, in <listcomp>
L, G = [int(s) for s in input().split(" ")]
ValueError: invalid literal for int() with base 10: ''
For some reason, I do not get this error message if I first print something before the line with L, G. Any idea what goes wrong?