ar = [] while True: line = input() if line == 'end': break ar.append([int(v) for v in line.split()]) print(ar)
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 3, in <module> EOFError: EOF when reading a line