take array as input of function python code example
Example: taking array input in python
x=[] for i in range(int(input("How many elements are in list : "))): x.append(int(input())) print(x)
x=[] for i in range(int(input("How many elements are in list : "))): x.append(int(input())) print(x)