Do we have any through which we can take single line as well as multi- line list input in Python? Like in C++ we have :-
for(i=0;i<5;i++)
{
cin>>A[i]; //this will take single line as well as multi-line input .
}
Now in Python we have :-
l=list(map(int,input().strip().split())) //for single line
&
l=list()
for i in range of(0,5):
x=int(input())
l.append(x) //for multi-line input
So my Question is do we have any python code which can take single as well as multi line input just the we we have in C++?