a python program to scan inputs in a list and compares the input with the list 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)