how to get list as input with function in python code example
Example: how to take list input in python
for i in range(0, n):
ele = int(input())
lst.append(ele)
for i in range(0, n):
ele = int(input())
lst.append(ele)