Any advice or tips would be greatly appreciated. Thanks in advance!
p.s I am trying to work in base 2.
def string_to_bits(string):
'''Return the list of bits that represents the input string.'''
one_string = string.replace(" ", "")
char_list = list(one_string)
new_list = []
for i in char_list:
num = ord(i)
new_list.append(num)
return new_list
This post has been edited by ABC111111: 12 August 2011 - 02:24 PM

New Topic/Question
Reply



MultiQuote





|