Question: Recently I have started learning python programming language and I got stuck while printing 123..n sequence using this:

```
n=10
print(i for i in range(1,n+1))

```

I got this output:

```
<generator object <genexpr> at 0x7f5990f20db0>                                   

```

Expecting Output:  

 1234....n  

 (Note: Only continuous output)

Answer: 
You need to add `[]`:  

`>>> print([i for i in range(1,n+1)])
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]` 

Without the barracks, you'll get the iterator for 1 ... n  

With them you'll get the list that the iterator creates 

In order to print only the numbers use `"".join()`:  

`>>> "".join([str(i) for i in range(1,n+1)]) # str(i) to convert from int to str
'12345678910'`
```
n =10

for i in range(1,n+1):
    print(i)

```