It's probably a silly question, but...

```
list = []
for i in range(1, 5):
    for j in range(i):
        list.append(i)
print(list)

list2 = [[i]*i for i in range(1, 5)]
print(list2)

```

With following code my output is like 

```
[1, 2, 2, 3, 3, 3, 4, 4, 4, 4]
[[1], [2, 2], [3, 3, 3], [4, 4, 4, 4]]

```

I understand why the second one looks like this, but are there any tricks to get the first list with comprehension?  

**P.S.**  

Python 3