Exercise: Digit to English Word
Write a program digit.py
that takes a single digit as commandline
parameter. Print the English word for that digit.
$ python digit.py 7
seven
Use a dictionary (key: int
, value: str
) for the translation.
Valid inputs are digits 0
- 9
. Outputs are the corresponding
lowercase english words for that digit.
Dependencies