how to input an array of n elements in python3 code example
Example: taking array input in python
x=[int(input()) for i in range(int(input("How many elements are in list : ")))] print(x)
x=[int(input()) for i in range(int(input("How many elements are in list : ")))] print(x)