methods taking input a list] in python code example
Example: get list input from user in python
a = list(map(int,input("\nEnter the numbers : ").strip().split()))
a = list(map(int,input("\nEnter the numbers : ").strip().split()))