J
Jochen Hub
Hi,
I am a real beginner in Python and I was wondering if there is a way to
convert a string (which contains a list) to a "real" list.
I need this since I would like to give a list as an argument to my
Python script from the bash:
#!/usr/bin/python
import sys
argument1 = sys.argv[1]
thelist = ???(argument1)
and then call the script from the bash like this
thescript.py ["A","B","C"]
Thanks you,
Jochen
I am a real beginner in Python and I was wondering if there is a way to
convert a string (which contains a list) to a "real" list.
I need this since I would like to give a list as an argument to my
Python script from the bash:
#!/usr/bin/python
import sys
argument1 = sys.argv[1]
thelist = ???(argument1)
and then call the script from the bash like this
thescript.py ["A","B","C"]
Thanks you,
Jochen