"Poppy" <znfmail-pythonlang at yahoo.com> 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