Hi everyone,
hope someone can help me or guide me since python really something new for me.
I use argv to read some input from user. My problem is i don't know how to read the input as a list. Assume that user should give --n and --file as input data.
>> number.py --n 1 2 3 --file data.txt
I want to read this --n input. I tried this.
if a == "--n":
n =(argv[:3])
But the problem the number length is unknown (depend on user). How do i handle this? Should be not difficult but since too many works make my brain frozen. Really need help. Many thanks before