Re: convert a long string in binary

2006-08-22 Thread Maric Michaud
Le dimanche 20 août 2006 13:55, [EMAIL PROTECTED] a écrit : > bussiere maillist: > > i've got a very long string > > and i wanted to convert it in binary > > Not much tested: > > _nibbles = {"0":"", "1":"0001", "2":"0010", "3":"0011", > "4":"0100", "5":"0101", "6":"0110", "7":"0111"

Re: convert a long string in binary

2006-08-20 Thread [EMAIL PROTECTED]
bussiere maillist wrote: > i've got a very long string > and i wanted to convert it in binary > like > > string = """Monty Python, or The Pythons, is the collective name of > the creators of Monty Python's Flying Circus, a British television > comedy sketch show that first aired on the BBC on Octo

Re: convert a long string in binary

2006-08-20 Thread bearophileHUGS
bussiere maillist: > i've got a very long string > and i wanted to convert it in binary Not much tested: _nibbles = {"0":"", "1":"0001", "2":"0010", "3":"0011", "4":"0100", "5":"0101", "6":"0110", "7":"0111", "8":"1000", "9":"1001", "A":"1010", "B":"1011",

convert a long string in binary

2006-08-20 Thread bussiere maillist
i've got a very long string and i wanted to convert it in binary like string = """Monty Python, or The Pythons, is the collective name of the creators of Monty Python's Flying Circus, a British television comedy sketch show that first aired on the BBC on October 5, 1969. A total of 45 episodes wer