def multiplicationTable(n):
    L = []
    for i in range(1, n + 1):      # iterate through all numbers in the range
        M = [] # our empty list
        for j in range (1, n + 1): # iterate through all numbers in the range 
            M.append(i * j)
        L.append(M) # add list to the main list, producing a nested list
    print L
