Digit to English Word

Write a program digit that takes a single digit as commandline parameter. Print the English word for that digit.

$ ./digit 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

cluster_python Python cluster_python_basics Basics cluster_python_basics_exercises Exercises python_basics_python_0120_helloworld Hello World python_basics_python_0110_blahblah Blahblah python_basics_python_0120_helloworld->python_basics_python_0110_blahblah python_basics_python_0150_datatypes_overview_compound Compound Datatypes python_basics_python_0150_datatypes_overview Datatypes python_basics_python_0150_datatypes_overview_compound->python_basics_python_0150_datatypes_overview python_basics_python_0140_variables Variables python_basics_python_0150_datatypes_overview->python_basics_python_0140_variables python_basics_python_0130_syntax_etc Syntax etc. python_basics_python_0130_syntax_etc->python_basics_python_0120_helloworld python_basics_python_0140_variables->python_basics_python_0130_syntax_etc python_basics_exercises_cmdline_digit Digit to English Word python_basics_exercises_cmdline_digit->python_basics_python_0120_helloworld python_basics_exercises_cmdline_digit->python_basics_python_0150_datatypes_overview_compound python_basics_exercises_cmdline_digit->python_basics_python_0150_datatypes_overview python_basics_exercises_cmdline_digit->python_basics_python_0130_syntax_etc python_basics_exercises_cmdline_digit->python_basics_python_0140_variables