I had originally coded the program wrongly. Instead of returning the Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 should = only those numbers between 1
It can be done by the following way.
n = 0 numbers = [0] for i in range(0,11): print n, numbers.append(n) prev = numbers[-2] if n == 0: n = 1 else: n = n + prev