logo CodeStepByStep logo

has_odd

Language/Type: Python collections set

Write a function named has_odd that takes a set of integers as a parameter and that returns True if the set contains at least one odd integer, and False otherwise. If passed the empty set, your function should return False.

Function: Write a Python function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.