Hey this is a really quick question. I guess I'll give correct answer in less than 2 minutes after posting this question.
I've started learning python, like 5 minutes ago, so mind the stupidity of the question. To test it I'm re-writing some algorithms i had.
Could someone tell me how can I read N ints from the input, and stop reading when I find the \n ? Also adding them to an array that I can work with?
something like this from C but in python
while(scanf("%d%c",&somearray[i],&c)!=EOF){
i++;
if (c == '\n'){
break;
}
}