def string2bin(string):
return ''.join(bin(ord(c)) for c in string).replace('b','')
#print("''Hello world'' in binary is ")
#print(toBinary("Hello world"))
s = string2bin("H")
print(s)
def string2bin(string):
return ''.join(bin(ord(c)) for c in string).replace('b','')
#print("''Hello world'' in binary is ")
#print(toBinary("Hello world"))
s = string2bin("H")
print(s)