Re: convert string containing list to list (or tuple) type



"Poppy" <znfmail-pythonlang@xxxxxxxxx> wrote:

a = ',P,'
b = ',I,G,AQ,ET,K,BF,'
c = ',DZ,'

for ea in (a,b,c):
print lst_codes(ea.strip(","))


Why not just use:

ea.strip(',').split(',')

?

--
Duncan Booth http://kupuguy.blogspot.com
.