for i in range(1,10): for j in range(1,i+1): bullshit = str(i*j).rjust(2) print(f'{j}*{i}={bullshit}',end=' ') print()