"""
Write a function that receives a starting number, an ending number (not inclusive) and a step number, and print every number
in the range separated by that step.
Example:
    print_numbers_with_a_step(1, 10, 2)
    > 1
    > 3
    > 5
    > 7
    > 9
Extra:
* Use a while loop
* Use a flag to denote if the ending number is inclusive or not:
    print_numbers_with_a_step(1, 10, 2, inclusive=True)
* Use ranges
"""

def print_numbers_with_a_step(start, end, step, inclusive = True):
    
	inclusive = inclusive

	if inclusive:
		while start <= end:
			print "{}".format(start)
			start += step
	else:
		while start < end:
			print "{}".format(start)
			start += step