I’m just starting out in Python and am doing the exercises on the HackInScience website. I need to print the squares of the numbers 0 to 10 inclusive. So 1 x 1, 2 x 2, 3 x 3 etc etc.

My attempt is as follows:

# squares of numbers 0 to 10

num = 0

for i in range(10):

```
numsq = num ** num
print(numsq)
num += 1
```

The output from this gives:

1

1

4

27

256

3125

46656

823543

16777216

387420489

The output is incorrect but I’m struggling to see what’s wrong with my code at this point. Could anyone help please?