Given an integer N as input, you need to print the square of each number from to N-, with each square on its own line. If N = , print: 0 (0²) 1 (1²) 4 (2²) 9 (3²) 16 (4²) The exponent operator ** squares a number: i ** 2 gives i squared.
So ** is . We need to loop through numbers , , , ..., N-. The range(N) function generates exactly this sequence. Combine it with a for loop and we can print the square of each value.