Q:

Input with tuple and choosing odd or even

I am trying to define a function that returns true if any of the inputted numbers are even.  1.) I do not know how to make python return true if both odd and even numbers are inputted.  For example, one input could be (1,2,3,4).  To me, that is true, but not to my function.  I only know how to tell python what is odd and what is even.  2.)  The input has to be in tuple form, and I only know how to input in (x,y) form.
This is what I have so far:
def any_even(tuple):
    """returns true if tuple has any even integers in it
    int -> int"""
    if tuple % 2 == 0:
        return True
    else:
        return False

A:

def any_even(foo):
    for i in foo:
        if i % 2 == 0:
            return True
    return False

You got the correct idea, however, you must iterate over the tuple
just like you would in a list.

