The pattern has two parts:
Row structure: row has number, row has , row i has i numbers. Number sequence: numbers are consecutive starting from .
You need a counter that doesn't reset between rows. Track it outside all loops:
counter = 1
for row in range(1, n + 1):
for col in range(row):
print(counter, end=" ")
counter += 1
print() # New line
The outer loop determines the row. The inner loop prints that many numbers. The counter increments globally.