Here we have an empty list that we are populating with 10 items using the append method.
n = 10 list =  for i in range(n): list.append(input()) print list
its a common mistake of doing something like this
n=10 list= for i in range(n): list[i]=input()this will throw an error IndexError: list assignment index out of range
Because the list is empty and list[i] is trying to access index which does not exist!