On 2007-12-15, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> does anybody know how to convert a long sequence of bits to a >>> bit-string? >> >>Yes! > > Would you like to help, please?
You'll have to define 'sequence of bits' and 'bit string' for us. The example you showed didn't really make sense in the context of those two phrases (neither of which has any sort of commonly accepted meaning in Python). You showed code that converted a string to an integer. That is apparently not what you wanted, but it's unclear what you do want. >>> I would appreciate a prompt reply because I have a python >>> assessment to submit. >> >>Good luck, you're lucky you've got the whole weekend :) > > That's not the only assignment I have to do... > I hope this is not like RTFM cause as much as I searched on > the web I couldn't find an answer. I'm not sure what the class is, but perhaps you're not supposed to "find an answer" on the web. Perhaps you're supposed to think up an answer yourself? In any case, I'm surprised you didn't find an answer, because the answer to the question I suspect you're trying to ask comes up quite regularly in this newsgroup. Here's a hint to get you started: help(int) -- Grant Edwards grante Yow! I hope I at bought the right visi.com relish... zzzzzzzzz... -- http://mail.python.org/mailman/listinfo/python-list