When given an input:
3
2 1
1 1 0
How would I take that input and store it as a list like so:
examList = [
[3],
[2,1],
[1,1,0]
]
How do you identify the end user input if there any no specific indicators?
Currently have the following code:
examList = []
i = input()
while i != '':
examList.append([int(s) for s in i.split()])
i = input()
But I keep getting EOF errors when reading the last elements into the list.