The Number Narrator
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
A read-aloud feature in an invoicing tool turns each amount into speakable text, so a number has to become its standard English words with no 'and' between the groups: `123` reads as `One Hundred Twenty Three`. Return the word form of a non-negative integer, and spell `0` as `Zero`.
Summary
Every number has a story in words.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.