convert a list of booleans to string

Posted by compie on Stack Overflow See other posts from Stack Overflow or by compie
Published on 2010-04-14T08:40:58Z Indexed on 2010/04/14 8:43 UTC
Read the original article Hit count: 254

Filed under:

How do I convert this:

[True, True, False, True, True, False, True]

Into this:

'AB DE G'

Note: C and F are missing in the output because the corresponding items in the input list are False.

© Stack Overflow or respective owner

Related posts about python