0
I know that to read multiple values by input on the same line you use "split()", and to add values to lists, some loop like "for" or "while"but I would like to know how to join both to be able to add multiple numeric values to a list having all of these inserted by just one line. I tried something like:
c = 0
n = input()
while c < n:
X.append(c,input().split(' '))
c+=1
But it doesn’t work, so if anyone knows any solution, please say,.
X
?– Lucas
Mate, I can’t answer your question, you want a flat list or a list of tuples of size n ?
– FourZeroFive