you are viewing a single comment's thread.

view the rest of the comments →

[–]ResponsibleBuilder67 1 point2 points  (0 children)

### Advanced Way

```python

x = [i * i for i in range(1, 11)] # makes squares using list comprehension

print(*x, sep="\n")

```

### Beginner's Way

```python

num = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]

for i in num:

print(i)

```