"Poppy" <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list