how to pass a cmd line argument to an array in python code example Example: how to take a list as input in python using sys.srgv argv = sys.argv[1:]