I am using the following simple code to tabulate the unicode characters in python3. How ever, for some reasons, the format couldn't come out right for some range of numbers.I appreciate if some one give me hint how to fix it.
equal = " = "
n=5
for i in range(int(1000/n),int(6000/n)):
for j in range(n):
print(f'{(n*i+j+1):<5d}{equal}{chr(n*i+j+1):<22s}',end="")
print()
The spacing is proportional to the length of each string. In this case it is not working.
thanks gor your help.