need to split every 8 char so it will become a list whereby i can then translate into ascii and then english. I just am at a loss for how to split the input,(one large string of binary numbers) into readable binary numbers, instead of just one string.
For example, the input string "010000010100001001000011" can be split in to octets as follows: "01000001","01000010","01000011".
What i have so far:
def main():
import string
#take user input of binary
code = raw_input ('Please type in your binary code to be decoded: ')
#split the code
for word in code:
print code[0::8] + ' '
#replace the input with the variables
ascii = ' '
for word in code:
ascii = ascii + int(word,2)
english = ' '
for word in acsii:
english = english + chr(word)
#print the variables to the user
print english
#call Main
main()