without knowing the 'size' how to take multi-line input and store it in a list ?
1
2
3
4  
>   list=[]
>   size=int(input())
>   for i in range(size):
>      list.append(int(input()))
without knowing the 'size' how to take multi-line input and store it in a list ?
1
2
3
4  
>   list=[]
>   size=int(input())
>   for i in range(size):
>      list.append(int(input()))
 
    
    result = []
while True:
    item = input()
    if not item:
        break
    result.append(int(item))
