On 2020-08-27, Chris Green <c...@isbd.net> wrote: > bbb = [b'aaa', b'bbb', b'ccc'] > sss = [] > for i in range(0, 2): > sss.append(str(bbb[i]) > > but that does seem a bit clumsy. Is there a better way?
sss = [str(s) for s in bbb] -- Grant -- https://mail.python.org/mailman/listinfo/python-list