I'm new to python. We have to accept two lines of inputs according to one problem. The first line will tell how many numbers will be entered in the next line. Then the next line will have that many numbers and we need to perform some operations on those numbers. So, I know that accepting multiple inputs from a single line is fairly easy when you know how many numbers you are going to get. For example, if you know the user will enter 3 numbers, one can do this:
a,b,c=map(int,input().split())
But what should one do when the number of inputs to be accepted is not known?
Please excuse me if this question is a duplicate, but I couldn't find any solution for the same. Any help is appreciated.
Many thanks.
*)a,*b=map(int, input().split())