Try declaring the variable numb.. that should fix it. I tried the code and here's where I put it.
#print(m) numb = 0 for i in range(0, m): x = i y = i + 1 numb.x=int(str(lista[0 + i*4]) + str(lista[2 + i*4])) numb.y=int(str(lista[1 + i * 4]) + str(lista[3 + i * 4])) numb.i= (numb.x) + (numb.y) chr(a.i) print(chr(a.i), end=" ")