← Back to challenges

Return Odd > Even

PythonHardmathvalidationnumbers

Instructions

Given a list, return True if there are more odd numbers than even numbers, otherwise return False.

Examples

oddeven([1, 2, 3, 4, 5, 6, 7, 8, 9]) ➞ True

oddeven([1]) ➞ True

oddeven([13452394823795273847528572346]) ➞ False

Notes

All lists will have at least 1 item.

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Alphanumeric Restriction