recip.py example for documentation

the ranges should be passed into this function as parameters and only be set up once, not every time through the loop.