I'm trying to convert text into a binary language, but it still leaves letters in the result, I would like a text to be created according to the number 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 anyone help me by pointing out the error?