digit = 1 row,col = 4,4 for i in range(1,row+1): digit = i for j in range(1,col+1): print(f"{digit:>3d}", end=" ") digit+=col print()