← Back to challenges

Uban Numbers

PythonHardmathnumbersstringsvalidation

Instructions

A number n is called uban if its name (in English) does not contain the letter "u". In particular, it cannot contain the terms "four", "hundred", and "thousand", so the uban number following 99 is 1,000,000.

Write a function to determine if the given integer is uban.

Examples

is_uban(456) ➞ False

is_uban(25) ➞ True

is_uban(1098) ➞ False

Notes

N/A

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