Salvatore DI DI0 a écrit :
(top-post corrected - Salvatore, please, don't top-post)
"Matt Porter" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED]
Hi guys,

I'm trying to compress a string.
E.g:
 "AAAABBBC" -> "ABC"

> Try this
>
> t = set("aaaaaaaaaaaabbbbbbbbbbccccccccc")
> list(t)

Won't keep the ordering.


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to