online table code example
Example: table
"""it's to get a table upto any number without linespacing trouble"""
a =int(input("upto:"))
n=a+1
for i in range(1,n):
for j in range(1,11):
print((len(str(a*a))-len(str(i*j))+1)*" ",end='')
print(i*j,end='')
print()