<div>Hello,</div>
<div> </div>
<div>I have a situation where I have 2 lists</div>
<div> </div>
<div>List1 = ['blue', 'red', green']</div>
<div>List2 = ['red', 'yellow', 'orange']</div>
<div> </div>
<div>And I would like to pass the list name on the command line like so</div>
<div> </div>
<div>./test.py List1</div>
<div> </div>
<div>I know I can get the argument using sys.argv[1]</div>
<div> </div>
<div>But how can I then use the values in that list inside my program?</div>
<div> </div>
<div>If I do a VALUES = sys.argv[1], then I get List1 as the values. I want the actual list elements.</div>
<div> </div>
<div>Is this possible?</div>
<div> </div>
<div>Thank you</div>
<div> </div>
<div>Jason</div>
<div> </div>
<div> </div>
<div> </div>