x = 5 for i in range(x): x = x + i print(x, end=" ") code example Example: python for loop range for i in range(0, 3): print(i)