Bluevine Interview Question

implement a range in python