for loops and arrays in python : I've been far from python for a while. when I try bellow code it gives me 

> IndexEroor

    n = int(input())
    array = []
    for i in range(n):
        array[i] = i+1


