0
I am trying to convert text into a binary language, but it keeps leaving letters in the result, I would like to create a text according to the numbering that each letter received:
a = 10000
c = 10011
d = 10000
e = 10000
f = 10000
g = 10000
h = 10000
i = 10000
j = 10000
l = 10000
m = 10000
n = 10000
o = 10000
p = 10000
q = 10000
r = 10000
s = 10000
t = 10000
u = 10000
v = 10000
w = 10000
x = 10000
y = 10000
z = 10000
texto = input('DIGITE UM TEXTO: ')
tam = len(texto)
for i in range(tam):
print('{}' .format(texto[i]))
Can someone help me by pointing out the mistake?
The only letter of different value is c, it doesn’t seem to make sense. What should be the result?
– Woss