Here's the complete solution: python n = int(input()) for i in range(n): print(i ** 2) The for i in range(n) line creates a loop. The variable i takes each value from to n- in sequence. For each value, we print its square.
This is a preview of loops, which we'll cover thoroughly in Section 3. For now, recognize the pattern: for lets you repeat code with changing values. Combined with variables and arithmetic, you can generate sequences like this easily.