0

hello,

I think it is just a silly thing but i can't work out why im only getting one number back from this..?

```
def MakeList(n): # Returns a list of n random numbers
List = []
for i in range(0, n):
List.append(random.randint(0,1000))
return (List)
MakeList(10)
I get:
[546]
```

But if I say,

```
def MakeList(n): # Returns a list of n random numbers
List = []
for i in range(0, n):
List.append(random.randint(0,1000))
print (List)
MakeList(10)
I get:
[935]
[935, 64]
[935, 64, 323]
[935, 64, 323, 584]
[935, 64, 323, 584, 806]
[935, 64, 323, 584, 806, 833]
[935, 64, 323, 584, 806, 833, 144]
[935, 64, 323, 584, 806, 833, 144, 347]
[935, 64, 323, 584, 806, 833, 144, 347, 526]
[935, 64, 323, 584, 806, 833, 144, 347, 526, 615]
```