numbers = [1,2,3,4,5,6,7,8,9]; def is_even(number): if number % 2 == 0: print number, "is even" return True else: print number, "is odd" return False for number in numbers: is_even(number)