← Back to challenges

One Odd and One Even

PythonHardnumbersvalidation

Instructions

Given a two digit number, return True if that number contains one even and one odd digit.

Examples

one_odd_one_even(12) ➞ True

one_odd_one_even(55) ➞ False

one_odd_one_even(22) ➞ False

Notes

N/A

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Planetary Weight Converter