''' Starting in the top left corner of a 2*2 grid, there are 6 routes (without backtracking) to the bottom right corner. How many routes are there through a 20*20 grid? ''' total = 1 for i in xrange(40, 20, -1): total *= i for i in xrange(1, 21): total /= i print total